diff --git a/docs/generators/python-experimental.md b/docs/generators/python-experimental.md
index ab5862d321..7f74f1a810 100644
--- a/docs/generators/python-experimental.md
+++ b/docs/generators/python-experimental.md
@@ -10,7 +10,7 @@ title: Documentation for the python-experimental Generator
| generator stability | EXPERIMENTAL | |
| generator type | CLIENT | |
| generator language | Python | |
-| generator language version | >=3.9 | |
+| generator language version | >=3.7 | |
| generator default templating engine | handlebars | |
| helpTxt | Generates a Python client library
Features in this generator:
- type hints on endpoints and model creation
- model parameter names use the spec defined keys and cases
- robust composition (oneOf/anyOf/allOf/not) where payload data is stored in one instance only
- endpoint parameter names use the spec defined keys and cases
- inline schemas are supported at any location including composition
- multiple content types supported in request body and response bodies
- run time type checking
- Sending/receiving decimals as strings supported with type:string format: number -> DecimalSchema
- Sending/receiving uuids as strings supported with type:string format: uuid -> UUIDSchema
- quicker load time for python modules (a single endpoint can be imported and used without loading others)
- all instances of schemas dynamically inherit from all matching schemas so one can use isinstance to check if validation passed
- composed schemas with type constraints supported (type:object + oneOf/anyOf/allOf)
- schemas are not coerced/cast. For example string + date are both stored as string, and there is a date accessor
- Exceptions: int/float is stored as Decimal, When receiving data from headers it will start as str and may need to be cast for example to int | |
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java
index 1890fc0d73..2917c2ee0a 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenConfig.java
@@ -328,4 +328,6 @@ public interface CodegenConfig {
List getSupportedVendorExtensions();
boolean getUseInlineModelResolver();
+
+ boolean getAddSuffixToDuplicateOperationNicknames();
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
index 50a9485db6..d6eef2a422 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java
@@ -297,6 +297,12 @@ public class DefaultCodegen implements CodegenConfig {
// from deeper schema defined locations
protected boolean addSchemaImportsFromV3SpecLocations = false;
+ protected boolean addSuffixToDuplicateOperationNicknames = true;
+
+ public boolean getAddSuffixToDuplicateOperationNicknames() {
+ return addSuffixToDuplicateOperationNicknames;
+ }
+
@Override
public List cliOptions() {
return cliOptions;
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
index f8dbd5361e..853db7ffd0 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
@@ -1200,16 +1200,18 @@ public class DefaultGenerator implements Generator {
objs.setClassname(config.toApiName(tag));
objs.setPathPrefix(config.toApiVarName(tag));
- // check for operationId uniqueness
- Set opIds = new HashSet<>();
- int counter = 0;
- for (CodegenOperation op : ops) {
- String opId = op.nickname;
- if (opIds.contains(opId)) {
- counter++;
- op.nickname += "_" + counter;
+ // check for nickname uniqueness
+ if (config.getAddSuffixToDuplicateOperationNicknames()) {
+ Set opIds = new HashSet<>();
+ int counter = 0;
+ for (CodegenOperation op : ops) {
+ String opId = op.nickname;
+ if (opIds.contains(opId)) {
+ counter++;
+ op.nickname += "_" + counter;
+ }
+ opIds.add(opId);
}
- opIds.add(opId);
}
objs.setOperation(ops);
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java
index 8741096c7b..442bb8bb46 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonExperimentalClientCodegen.java
@@ -20,7 +20,6 @@ import com.github.curiousoddman.rgxgen.RgxGen;
import com.github.curiousoddman.rgxgen.config.RgxGenOption;
import com.github.curiousoddman.rgxgen.config.RgxGenProperties;
import com.google.common.base.CaseFormat;
-import io.swagger.v3.oas.annotations.tags.Tags;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.Operation;
import io.swagger.v3.oas.models.PathItem;
@@ -112,6 +111,7 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
addSchemaImportsFromV3SpecLocations = true;
sortModelPropertiesByRequiredFlag = Boolean.TRUE;
sortParamsByRequiredFlag = Boolean.TRUE;
+ addSuffixToDuplicateOperationNicknames = false;
modifyFeatureSet(features -> features
.includeSchemaSupportFeatures(
@@ -2638,7 +2638,7 @@ public class PythonExperimentalClientCodegen extends AbstractPythonCodegen {
}
@Override
- public String generatorLanguageVersion() { return ">=3.9"; };
+ public String generatorLanguageVersion() { return ">=3.7"; };
@Override
public void preprocessOpenAPI(OpenAPI openAPI) {
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/README.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/README.handlebars
index 2b19aa847c..b8819d2116 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/README.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/README.handlebars
@@ -18,8 +18,6 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
## Requirements.
Python {{generatorLanguageVersion}}
-v3.9 is needed so one can combine classmethod and property decorators to define
-object schema properties as classes
## Migration from other generators like python and python-legacy
@@ -60,6 +58,16 @@ object schema properties as classes
- A type hint is also generated for additionalProperties accessed using this method
- So you will need to update you code to use some_instance['optionalProp'] to access optional property
and additionalProperty values
+8. The location of the api classes has changed
+ - Api classes are located in your_package.apis.tags.some_api
+ - This change was made to eliminate redundant code generation
+ - Legacy generators generated the same endpoint twice if it had > 1 tag on it
+ - This generator defines an endpoint in one class, then inherits that class to generate
+ apis by tags and by paths
+ - This change reduces code and allows quicker run time if you use the path apis
+ - path apis are at your_package.apis.paths.some_path
+ - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api
+ - So you will need to update your import paths to the api classes
### Why are Oapg and _oapg used in class and method names?
Classes can have arbitrarily named properties set on them
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/__init__test_paths.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/__init__test_paths.handlebars
index 3d59208080..1309632d3d 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/__init__test_paths.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/__init__test_paths.handlebars
@@ -41,7 +41,7 @@ class ApiTestMixin:
)
@staticmethod
- def headers_for_content_type(content_type: str) -> dict[str, str]:
+ def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:
return {'content-type': content_type}
@classmethod
@@ -50,7 +50,7 @@ class ApiTestMixin:
body: typing.Union[str, bytes],
status: int = 200,
content_type: str = json_content_type,
- headers: typing.Optional[dict[str, str]] = None,
+ headers: typing.Optional[typing.Dict[str, str]] = None,
preload_content: bool = True
) -> urllib3.HTTPResponse:
if headers is None:
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/api_client.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/api_client.handlebars
index cbbc941848..d67e7e3d57 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/api_client.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/api_client.handlebars
@@ -13,6 +13,7 @@ from multiprocessing.pool import ThreadPool
import re
import tempfile
import typing
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from urllib.parse import urlparse, quote
@@ -704,7 +705,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
)
@staticmethod
- def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict[str, str]:
+ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict:
data = tuple(t for t in in_data if t)
headers = HTTPHeaderDict()
if not data:
@@ -716,7 +717,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> HTTPHeaderDict[str, str]:
+ ) -> HTTPHeaderDict:
if self.schema:
cast_in_data = self.schema(in_data)
cast_in_data = self._json_encoder.default(cast_in_data)
@@ -1270,7 +1271,7 @@ class Api:
self.api_client = api_client
@staticmethod
- def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing.TypedDict], data: typing.Dict[str, typing.Any]):
+ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]):
"""
Ensures that:
- required keys are present
@@ -1342,9 +1343,9 @@ class Api:
return host
-class SerializedRequestBody(typing.TypedDict, total=False):
+class SerializedRequestBody(typing_extensions.TypedDict, total=False):
body: typing.Union[str, bytes]
- fields: typing.Tuple[typing.Union[RequestField, tuple[str, str]], ...]
+ fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
class RequestBody(StyleFormSerializer, JSONDetector):
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/apis_path_to_api.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/apis_path_to_api.handlebars
index 8a1ccb210d..a52df9cf15 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/apis_path_to_api.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/apis_path_to_api.handlebars
@@ -1,11 +1,11 @@
-import typing
+import typing_extensions
from {{packageName}}.paths import PathValues
{{#each pathModuleToApiClassname}}
from {{packageName}}.apis.paths.{{@key}} import {{this}}
{{/each}}
-PathToApi = typing.TypedDict(
+PathToApi = typing_extensions.TypedDict(
'PathToApi',
{
{{#each pathEnumToApiClassname}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/apis_tag_to_api.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/apis_tag_to_api.handlebars
index e3c8b52fd4..dacbc478aa 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/apis_tag_to_api.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/apis_tag_to_api.handlebars
@@ -1,11 +1,11 @@
-import typing
+import typing_extensions
from {{packageName}}.apis.tags import TagValues
{{#each tagModuleNameToApiClassname}}
from {{packageName}}.apis.tags.{{@key}} import {{this}}
{{/each}}
-TagToApi = typing.TypedDict(
+TagToApi = typing_extensions.TypedDict(
'TagToApi',
{
{{#each tagEnumToApiClassname}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars
index 5572a238a7..c7c81d8acd 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/endpoint.handlebars
@@ -3,6 +3,7 @@
{{>partial_header}}
from dataclasses import dataclass
+import typing_extensions
import urllib3
{{#with operation}}
{{#or headerParams bodyParam produces}}
@@ -27,7 +28,7 @@ from . import path
{{/with}}
{{/each}}
{{#unless isStub}}
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
{{#each queryParams}}
@@ -37,7 +38,7 @@ RequestRequiredQueryParams = typing.TypedDict(
{{/each}}
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
{{#each queryParams}}
@@ -67,7 +68,7 @@ class RequestQueryParams(RequestRequiredQueryParams, RequestOptionalQueryParams)
{{/with}}
{{/each}}
{{#unless isStub}}
-RequestRequiredHeaderParams = typing.TypedDict(
+RequestRequiredHeaderParams = typing_extensions.TypedDict(
'RequestRequiredHeaderParams',
{
{{#each headerParams}}
@@ -77,7 +78,7 @@ RequestRequiredHeaderParams = typing.TypedDict(
{{/each}}
}
)
-RequestOptionalHeaderParams = typing.TypedDict(
+RequestOptionalHeaderParams = typing_extensions.TypedDict(
'RequestOptionalHeaderParams',
{
{{#each headerParams}}
@@ -107,7 +108,7 @@ class RequestHeaderParams(RequestRequiredHeaderParams, RequestOptionalHeaderPara
{{/with}}
{{/each}}
{{#unless isStub}}
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
{{#each pathParams}}
@@ -117,7 +118,7 @@ RequestRequiredPathParams = typing.TypedDict(
{{/each}}
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
{{#each pathParams}}
@@ -147,7 +148,7 @@ class RequestPathParams(RequestRequiredPathParams, RequestOptionalPathParams):
{{/with}}
{{/each}}
{{#unless isStub}}
-RequestRequiredCookieParams = typing.TypedDict(
+RequestRequiredCookieParams = typing_extensions.TypedDict(
'RequestRequiredCookieParams',
{
{{#each cookieParams}}
@@ -157,7 +158,7 @@ RequestRequiredCookieParams = typing.TypedDict(
{{/each}}
}
)
-RequestOptionalCookieParams = typing.TypedDict(
+RequestOptionalCookieParams = typing_extensions.TypedDict(
'RequestOptionalCookieParams',
{
{{#each cookieParams}}
@@ -278,7 +279,7 @@ _servers = (
{{/each}}
{{#unless isStub}}
{{#if responseHeaders}}
-ResponseHeadersFor{{code}} = typing.TypedDict(
+ResponseHeadersFor{{code}} = typing_extensions.TypedDict(
'ResponseHeadersFor{{code}}',
{
{{#each responseHeaders}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/composed_schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/composed_schemas.handlebars
index 4b3102090f..0c9264e1b1 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/composed_schemas.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/composed_schemas.handlebars
@@ -19,8 +19,7 @@
{{#if allOf}}
@classmethod
-@property
-@functools.cache
+@functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -46,8 +45,7 @@ def all_of(cls):
{{#if oneOf}}
@classmethod
-@property
-@functools.cache
+@functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +71,7 @@ def one_of(cls):
{{#if anyOf}}
@classmethod
-@property
-@functools.cache
+@functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -101,9 +98,8 @@ def any_of(cls):
{{#with not}}
{{#if complexType}}
-@classmethod
-@property
-def {{baseName}}(cls) -> typing.Type['{{complexType}}']:
+@staticmethod
+def {{baseName}}() -> typing.Type['{{complexType}}']:
return {{complexType}}
{{else}}
{{> model_templates/schema }}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/dict_partial.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/dict_partial.handlebars
index 18a88cbf97..e5803340e4 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/dict_partial.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/dict_partial.handlebars
@@ -10,9 +10,8 @@ required = {
{{#each mappedModels}}
{{#if @first}}
-@classmethod
-@property
-def discriminator(cls):
+@staticmethod
+def discriminator():
return {
'{{{propertyBaseName}}}': {
{{/if}}
@@ -30,9 +29,8 @@ class properties:
{{#each vars}}
{{#if complexType}}
- @classmethod
- @property
- def {{baseName}}(cls) -> typing.Type['{{complexType}}']:
+ @staticmethod
+ def {{baseName}}() -> typing.Type['{{complexType}}']:
return {{complexType}}
{{else}}
{{> model_templates/schema }}
@@ -51,9 +49,8 @@ class properties:
{{#with additionalProperties}}
{{#if complexType}}
-@classmethod
-@property
-def {{baseName}}(cls) -> typing.Type['{{complexType}}']:
+@staticmethod
+def {{baseName}}() -> typing.Type['{{complexType}}']:
return {{complexType}}
{{else}}
{{> model_templates/schema }}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enums.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enums.handlebars
index 68dd1f03db..72861be45d 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enums.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/enums.handlebars
@@ -1,15 +1,13 @@
{{#if isNull}}
-@classmethod
-@property
+@schemas.classproperty
def NONE(cls):
return cls(None)
{{/if}}
{{#with allowableValues}}
{{#each enumVars}}
-@classmethod
-@property
+@schemas.classproperty
def {{name}}(cls):
return cls({{{value}}})
{{/each}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars
index b1fb9f1a48..522c8f2c93 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/imports_schema_types.handlebars
@@ -4,6 +4,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/list_partial.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/list_partial.handlebars
index 2830d9903e..97c4003fe9 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/list_partial.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/list_partial.handlebars
@@ -1,9 +1,8 @@
{{#with items}}
{{#if complexType}}
-@classmethod
-@property
-def {{baseName}}(cls) -> typing.Type['{{complexType}}']:
+@staticmethod
+def {{baseName}}() -> typing.Type['{{complexType}}']:
return {{complexType}}
{{else}}
{{> model_templates/schema }}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars
index bb5e1b16e6..6fd1d8a3a3 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops.handlebars
@@ -4,15 +4,15 @@
@typing.overload
{{#if complexType}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
{{else}}
{{#if schemaIsFromAdditionalProperties}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.additional_properties: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.additional_properties: ...
{{else}}
{{#if nameInSnakeCase}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
{{else}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
{{/if}}
{{/if}}
{{/if}}
@@ -25,12 +25,12 @@ def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.proper
@typing.overload
{{#if complexType}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
{{else}}
{{#if nameInSnakeCase}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
{{else}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
{{/if}}
{{/if}}
{{/unless}}
@@ -58,15 +58,15 @@ def __getitem__(self, name: str) -> {{#if complexType}}'{{complexType}}'{{else}}
@typing.overload
{{#if complexType}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
{{else}}
{{#if schemaIsFromAdditionalProperties}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.additional_properties: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.additional_properties: ...
{{else}}
{{#if nameInSnakeCase}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
{{else}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
{{/if}}
{{/if}}
{{/if}}
@@ -79,12 +79,12 @@ def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.prop
@typing.overload
{{#if complexType}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> typing.Union['{{complexType}}', schemas.Unset]: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> typing.Union['{{complexType}}', schemas.Unset]: ...
{{else}}
{{#if nameInSnakeCase}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> typing.Union[MetaOapg.properties.{{name}}, schemas.Unset]: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> typing.Union[MetaOapg.properties.{{name}}, schemas.Unset]: ...
{{else}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> typing.Union[MetaOapg.properties.{{baseName}}, schemas.Unset]: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> typing.Union[MetaOapg.properties.{{baseName}}, schemas.Unset]: ...
{{/if}}
{{/if}}
{{/unless}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops_getitem.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops_getitem.handlebars
index 9e84366ac1..f35667373f 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops_getitem.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_with_addprops_getitem.handlebars
@@ -1,4 +1,4 @@
-def {{methodName}}(self, name: typing.Union[{{#each getRequiredVarsMap}}{{#with this}}typing.Literal["{{{baseName}}}"], {{/with}}{{/each}}{{#each vars}}{{#unless required}}typing.Literal["{{{baseName}}}"], {{/unless}}{{/each}}{{#with additionalProperties}}{{#unless getIsBooleanSchemaFalse}}str, {{/unless}}{{/with}}]){{#not vars}}{{#not getRequiredVarsMap}}{{#with additionalProperties}}{{#unless getIsBooleanSchemaFalse}} -> {{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/unless}}{{/with}}{{/not}}{{/not}}:
+def {{methodName}}(self, name: typing.Union[{{#each getRequiredVarsMap}}{{#with this}}typing_extensions.Literal["{{{baseName}}}"], {{/with}}{{/each}}{{#each vars}}{{#unless required}}typing_extensions.Literal["{{{baseName}}}"], {{/unless}}{{/each}}{{#with additionalProperties}}{{#unless getIsBooleanSchemaFalse}}str, {{/unless}}{{/with}}]){{#not vars}}{{#not getRequiredVarsMap}}{{#with additionalProperties}}{{#unless getIsBooleanSchemaFalse}} -> {{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/unless}}{{/with}}{{/not}}{{/not}}:
{{#eq methodName "__getitem__"}}
# dict_instance[name] accessor
{{/eq}}
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_without_addprops.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_without_addprops.handlebars
index 62345cf233..efb37d4ca1 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_without_addprops.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/model_templates/property_getitems_without_addprops.handlebars
@@ -3,12 +3,12 @@
@typing.overload
{{#if complexType}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> '{{complexType}}': ...
{{else}}
{{#if nameInSnakeCase}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{name}}: ...
{{else}}
-def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
+def __getitem__(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> MetaOapg.properties.{{baseName}}: ...
{{/if}}
{{/if}}
{{/each}}
@@ -16,7 +16,7 @@ def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> MetaOapg.proper
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
-def __getitem__(self, name: typing.Union[typing.Literal[{{#each vars}}"{{{baseName}}}", {{/each}}], str]):
+def __getitem__(self, name: typing.Union[typing_extensions.Literal[{{#each vars}}"{{{baseName}}}", {{/each}}], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@@ -26,12 +26,12 @@ def __getitem__(self, name: typing.Union[typing.Literal[{{#each vars}}"{{{baseNa
@typing.overload
{{#if complexType}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}'{{complexType}}'{{#unless required}}, schemas.Unset]{{/unless}}: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}'{{complexType}}'{{#unless required}}, schemas.Unset]{{/unless}}: ...
{{else}}
{{#if nameInSnakeCase}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}MetaOapg.properties.{{name}}{{#unless required}}, schemas.Unset]{{/unless}}: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}MetaOapg.properties.{{name}}{{#unless required}}, schemas.Unset]{{/unless}}: ...
{{else}}
-def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}MetaOapg.properties.{{baseName}}{{#unless required}}, schemas.Unset]{{/unless}}: ...
+def get_item_oapg(self, name: typing_extensions.Literal["{{{baseName}}}"]) -> {{#unless required}}typing.Union[{{/unless}}MetaOapg.properties.{{baseName}}{{#unless required}}, schemas.Unset]{{/unless}}: ...
{{/if}}
{{/if}}
{{/each}}
@@ -39,7 +39,7 @@ def get_item_oapg(self, name: typing.Literal["{{{baseName}}}"]) -> {{#unless req
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
-def get_item_oapg(self, name: typing.Union[typing.Literal[{{#each vars}}"{{{baseName}}}", {{/each}}], str]):
+def get_item_oapg(self, name: typing.Union[typing_extensions.Literal[{{#each vars}}"{{{baseName}}}", {{/each}}], str]):
return super().get_item_oapg(name)
{{/if}}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars
index e74015e511..7da16df226 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/schemas.handlebars
@@ -8,6 +8,7 @@ import functools
import decimal
import io
import re
+import types
import typing
import uuid
@@ -176,9 +177,17 @@ class Singleton:
return f'<{self.__class__.__name__}: {super().__repr__()}>'
+class classproperty:
+
+ def __init__(self, fget):
+ self.fget = fget
+
+ def __get__(self, owner_self, owner_cls):
+ return self.fget(owner_cls)
+
+
class NoneClass(Singleton):
- @classmethod
- @property
+ @classproperty
def NONE(cls):
return cls(None)
@@ -187,17 +196,15 @@ class NoneClass(Singleton):
class BoolClass(Singleton):
- @classmethod
- @property
+ @classproperty
def TRUE(cls):
return cls(True)
- @classmethod
- @property
+ @classproperty
def FALSE(cls):
return cls(False)
- @functools.cache
+ @functools.lru_cache()
def __bool__(self) -> bool:
for key, instance in self._instances.items():
if self is instance:
@@ -249,6 +256,16 @@ class Schema:
return "is {0}".format(all_class_names[0])
return "is one of [{0}]".format(", ".join(all_class_names))
+ @staticmethod
+ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']:
+ if isinstance(item_cls, types.FunctionType):
+ # referenced schema
+ return item_cls()
+ elif isinstance(item_cls, staticmethod):
+ # referenced schema
+ return item_cls.__func__()
+ return item_cls
+
@classmethod
def __type_error_message(
cls, var_value=None, var_name=None, valid_classes=None, key_type=None
@@ -856,39 +873,19 @@ class ValidatorBase:
)
-class Validator(typing.Protocol):
- @classmethod
- def _validate_oapg(
- cls,
- arg,
- validation_metadata: ValidationMetadata,
- ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:
- pass
-
-
class EnumMakerBase:
pass
-class EnumMakerInterface(Validator):
- @classmethod
- @property
- def _enum_value_to_name(
- cls
- ) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
- pass
-
-
-def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface:
+def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> 'SchemaEnumMaker':
class SchemaEnumMaker(EnumMakerBase):
@classmethod
- @property
def _enum_value_to_name(
- cls
+ cls
) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
pass
try:
- super_enum_value_to_name = super()._enum_value_to_name
+ super_enum_value_to_name = super()._enum_value_to_name()
except AttributeError:
return enum_value_to_name
intersection = dict(enum_value_to_name.items() & super_enum_value_to_name.items())
@@ -905,9 +902,9 @@ def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str,
Validates that arg is in the enum's allowed values
"""
try:
- cls._enum_value_to_name[arg]
+ cls._enum_value_to_name()[arg]
except KeyError:
- raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name))
+ raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name()))
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
return SchemaEnumMaker
@@ -1034,7 +1031,7 @@ class StrBase(ValidatorBase):
class UUIDBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_uuid_oapg(self) -> uuid.UUID:
return uuid.UUID(self)
@@ -1100,7 +1097,7 @@ DEFAULT_ISOPARSER = CustomIsoparser()
class DateBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_date_oapg(self) -> date:
return DEFAULT_ISOPARSER.parse_isodate(self)
@@ -1131,7 +1128,7 @@ class DateBase:
class DateTimeBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_datetime_oapg(self) -> datetime:
return DEFAULT_ISOPARSER.parse_isodatetime(self)
@@ -1168,7 +1165,7 @@ class DecimalBase:
"""
@property
- @functools.cache
+ @functools.lru_cache()
def as_decimal_oapg(self) -> decimal.Decimal:
return decimal.Decimal(self)
@@ -1337,6 +1334,7 @@ class ListBase(ValidatorBase):
# if we have definitions for an items schema, use it
# otherwise accept anything
item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema)
+ item_cls = cls._get_class_oapg(item_cls)
path_to_schemas = {}
for i, value in enumerate(list_items):
item_validation_metadata = ValidationMetadata(
@@ -1470,7 +1468,7 @@ class Discriminable:
"""
if not hasattr(cls.MetaOapg, 'discriminator'):
return None
- disc = cls.MetaOapg.discriminator
+ disc = cls.MetaOapg.discriminator()
if disc_property_name not in disc:
return None
discriminated_cls = disc[disc_property_name].get(disc_payload_value)
@@ -1485,21 +1483,24 @@ class Discriminable:
):
return None
# TODO stop traveling if a cycle is hit
- for allof_cls in getattr(cls.MetaOapg, 'all_of', []):
- discriminated_cls = allof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for oneof_cls in getattr(cls.MetaOapg, 'one_of', []):
- discriminated_cls = oneof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for anyof_cls in getattr(cls.MetaOapg, 'any_of', []):
- discriminated_cls = anyof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
+ if hasattr(cls.MetaOapg, 'all_of'):
+ for allof_cls in cls.MetaOapg.all_of():
+ discriminated_cls = allof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'one_of'):
+ for oneof_cls in cls.MetaOapg.one_of():
+ discriminated_cls = oneof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'any_of'):
+ for anyof_cls in cls.MetaOapg.any_of():
+ discriminated_cls = anyof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
return None
@@ -1598,9 +1599,7 @@ class DictBase(Discriminable, ValidatorBase):
raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format(
value, cls, validation_metadata.path_to_item+(property_name,)
))
- if isinstance(schema, classmethod):
- # referenced schema, call classmethod property
- schema = schema.__func__.fget(properties)
+ schema = cls._get_class_oapg(schema)
arg_validation_metadata = ValidationMetadata(
from_server=validation_metadata.from_server,
configuration=validation_metadata.configuration,
@@ -1671,7 +1670,7 @@ class DictBase(Discriminable, ValidatorBase):
other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata)
update(_path_to_schemas, other_path_to_schemas)
try:
- discriminator = cls.MetaOapg.discriminator
+ discriminator = cls.MetaOapg.discriminator()
except AttributeError:
return _path_to_schemas
# discriminator exists
@@ -1856,7 +1855,7 @@ class ComposedBase(Discriminable):
@classmethod
def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata):
path_to_schemas = defaultdict(set)
- for allof_cls in cls.MetaOapg.all_of:
+ for allof_cls in cls.MetaOapg.all_of():
if validation_metadata.validation_ran_earlier(allof_cls):
continue
other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata)
@@ -1872,7 +1871,7 @@ class ComposedBase(Discriminable):
):
oneof_classes = []
path_to_schemas = defaultdict(set)
- for oneof_cls in cls.MetaOapg.one_of:
+ for oneof_cls in cls.MetaOapg.one_of():
if oneof_cls in path_to_schemas[validation_metadata.path_to_item]:
oneof_classes.append(oneof_cls)
continue
@@ -1907,7 +1906,7 @@ class ComposedBase(Discriminable):
):
anyof_classes = []
path_to_schemas = defaultdict(set)
- for anyof_cls in cls.MetaOapg.any_of:
+ for anyof_cls in cls.MetaOapg.any_of():
if validation_metadata.validation_ran_earlier(anyof_cls):
anyof_classes.append(anyof_cls)
continue
@@ -1997,8 +1996,9 @@ class ComposedBase(Discriminable):
)
update(path_to_schemas, other_path_to_schemas)
not_cls = None
- if hasattr(cls, 'MetaOapg'):
- not_cls = getattr(cls.MetaOapg, 'not_schema', None)
+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'):
+ not_cls = cls.MetaOapg.not_schema
+ not_cls = cls._get_class_oapg(not_cls)
if not_cls:
other_path_to_schemas = None
not_exception = ApiValueError(
@@ -2367,10 +2367,12 @@ class BinarySchema(
BinaryMixin
):
class MetaOapg:
- one_of = [
- BytesSchema,
- FileSchema,
- ]
+ @staticmethod
+ def one_of():
+ return [
+ BytesSchema,
+ FileSchema,
+ ]
def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration):
return super().__new__(cls, arg)
@@ -2449,7 +2451,7 @@ class DictSchema(
schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema}
-@functools.cache
+@functools.lru_cache()
def get_new_class(
class_name: str,
bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...]
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/setup.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/setup.handlebars
index 5633db861a..a346b23cb6 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/setup.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/setup.handlebars
@@ -29,6 +29,7 @@ REQUIRES = [
"pem>=19.3.0",
"pycryptodome>=3.9.0",
{{/if}}
+ "typing_extensions",
]
setup(
diff --git a/modules/openapi-generator/src/main/resources/python-experimental/tox.handlebars b/modules/openapi-generator/src/main/resources/python-experimental/tox.handlebars
index d1b68916df..b2544b81d4 100644
--- a/modules/openapi-generator/src/main/resources/python-experimental/tox.handlebars
+++ b/modules/openapi-generator/src/main/resources/python-experimental/tox.handlebars
@@ -1,7 +1,8 @@
[tox]
-envlist = py39
+envlist = py37
[testenv]
+passenv = PYTHON_VERSION
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/README.md b/samples/openapi3/client/3_0_3_unit_test/python-experimental/README.md
index 68f30a4221..8d602e0e07 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/README.md
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/README.md
@@ -9,9 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
## Requirements.
-Python >=3.9
-v3.9 is needed so one can combine classmethod and property decorators to define
-object schema properties as classes
+Python >=3.7
## Migration from other generators like python and python-legacy
@@ -52,6 +50,16 @@ object schema properties as classes
- A type hint is also generated for additionalProperties accessed using this method
- So you will need to update you code to use some_instance['optionalProp'] to access optional property
and additionalProperty values
+8. The location of the api classes has changed
+ - Api classes are located in your_package.apis.tags.some_api
+ - This change was made to eliminate redundant code generation
+ - Legacy generators generated the same endpoint twice if it had > 1 tag on it
+ - This generator defines an endpoint in one class, then inherits that class to generate
+ apis by tags and by paths
+ - This change reduces code and allows quicker run time if you use the path apis
+ - path apis are at your_package.apis.paths.some_path
+ - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api
+ - So you will need to update your import paths to the api classes
### Why are Oapg and _oapg used in class and method names?
Classes can have arbitrarily named properties set on them
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/setup.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/setup.py
index bac2d32398..5f2ac30e9f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/setup.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/setup.py
@@ -25,6 +25,7 @@ REQUIRES = [
"certifi",
"python-dateutil",
"frozendict >= 2.0.3",
+ "typing_extensions",
]
setup(
@@ -35,7 +36,7 @@ setup(
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "openapi 3.0.3 sample spec"],
- python_requires=">=3.9",
+ python_requires=">=3.7",
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_paths/__init__.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_paths/__init__.py
index 3d59208080..1309632d3d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_paths/__init__.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_paths/__init__.py
@@ -41,7 +41,7 @@ class ApiTestMixin:
)
@staticmethod
- def headers_for_content_type(content_type: str) -> dict[str, str]:
+ def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:
return {'content-type': content_type}
@classmethod
@@ -50,7 +50,7 @@ class ApiTestMixin:
body: typing.Union[str, bytes],
status: int = 200,
content_type: str = json_content_type,
- headers: typing.Optional[dict[str, str]] = None,
+ headers: typing.Optional[typing.Dict[str, str]] = None,
preload_content: bool = True
) -> urllib3.HTTPResponse:
if headers is None:
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/tox.ini b/samples/openapi3/client/3_0_3_unit_test/python-experimental/tox.ini
index e4093b56ea..6db4b8ba64 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/tox.ini
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/tox.ini
@@ -1,7 +1,8 @@
[tox]
-envlist = py39
+envlist = py37
[testenv]
+passenv = PYTHON_VERSION
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/api_client.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/api_client.py
index a66844ae6e..e1de9fcc9c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/api_client.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/api_client.py
@@ -20,6 +20,7 @@ from multiprocessing.pool import ThreadPool
import re
import tempfile
import typing
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from urllib.parse import urlparse, quote
@@ -708,7 +709,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
)
@staticmethod
- def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict[str, str]:
+ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict:
data = tuple(t for t in in_data if t)
headers = HTTPHeaderDict()
if not data:
@@ -720,7 +721,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> HTTPHeaderDict[str, str]:
+ ) -> HTTPHeaderDict:
if self.schema:
cast_in_data = self.schema(in_data)
cast_in_data = self._json_encoder.default(cast_in_data)
@@ -1260,7 +1261,7 @@ class Api:
self.api_client = api_client
@staticmethod
- def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing.TypedDict], data: typing.Dict[str, typing.Any]):
+ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]):
"""
Ensures that:
- required keys are present
@@ -1332,9 +1333,9 @@ class Api:
return host
-class SerializedRequestBody(typing.TypedDict, total=False):
+class SerializedRequestBody(typing_extensions.TypedDict, total=False):
body: typing.Union[str, bytes]
- fields: typing.Tuple[typing.Union[RequestField, tuple[str, str]], ...]
+ fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
class RequestBody(StyleFormSerializer, JSONDetector):
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/path_to_api.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/path_to_api.py
index dd7ac51a7a..8a75c50c3e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/path_to_api.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/path_to_api.py
@@ -1,4 +1,4 @@
-import typing
+import typing_extensions
from unit_test_api.paths import PathValues
from unit_test_api.apis.paths.request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body import RequestBodyPostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody
@@ -176,7 +176,7 @@ from unit_test_api.apis.paths.response_body_post_uniqueitems_validation_response
from unit_test_api.apis.paths.request_body_post_uniqueitems_false_validation_request_body import RequestBodyPostUniqueitemsFalseValidationRequestBody
from unit_test_api.apis.paths.response_body_post_uniqueitems_false_validation_response_body_for_content_types import ResponseBodyPostUniqueitemsFalseValidationResponseBodyForContentTypes
-PathToApi = typing.TypedDict(
+PathToApi = typing_extensions.TypedDict(
'PathToApi',
{
PathValues.REQUEST_BODY_POST_ADDITIONALPROPERTIES_ALLOWS_ASCHEMA_WHICH_SHOULD_VALIDATE_REQUEST_BODY: RequestBodyPostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody,
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/tag_to_api.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/tag_to_api.py
index b2e559af74..a40db5c5f9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/tag_to_api.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/apis/tag_to_api.py
@@ -1,4 +1,4 @@
-import typing
+import typing_extensions
from unit_test_api.apis.tags import TagValues
from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi
@@ -30,7 +30,7 @@ from unit_test_api.apis.tags.required_api import RequiredApi
from unit_test_api.apis.tags.type_api import TypeApi
from unit_test_api.apis.tags.unique_items_api import UniqueItemsApi
-TagToApi = typing.TypedDict(
+TagToApi = typing_extensions.TypedDict(
'TagToApi',
{
TagValues.OPERATION_REQUEST_BODY: OperationRequestBodyApi,
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py
index 1f8e5f7033..66cc28eb41 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,28 +45,28 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
additional_properties = schemas.BoolSchema
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo"], typing.Literal["bar"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo"], typing.Literal["bar"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi
index 1f8e5f7033..66cc28eb41 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_allows_a_schema_which_should_validate.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,28 +45,28 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
additional_properties = schemas.BoolSchema
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo"], typing.Literal["bar"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo"], typing.Literal["bar"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo"], typing_extensions.Literal["bar"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py
index eba73748ba..273766346b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,29 +45,29 @@ class AdditionalpropertiesAreAllowedByDefault(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi
index eba73748ba..273766346b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_are_allowed_by_default.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,29 +45,29 @@ class AdditionalpropertiesAreAllowedByDefault(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py
index c76dafd64a..6f57c6b4e8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi
index c76dafd64a..6f57c6b4e8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_can_exist_by_itself.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py
index 59ebde538e..cabf9af560 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,23 +52,23 @@ class AdditionalpropertiesShouldNotLookInApplicators(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -87,8 +88,7 @@ class AdditionalpropertiesShouldNotLookInApplicators(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi
index 59ebde538e..cabf9af560 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/additionalproperties_should_not_look_in_applicators.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,23 +52,23 @@ class AdditionalpropertiesShouldNotLookInApplicators(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -87,8 +88,7 @@ class AdditionalpropertiesShouldNotLookInApplicators(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py
index 19133caac3..2e093c6cec 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class Allof(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class Allof(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class Allof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi
index 19133caac3..2e093c6cec 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class Allof(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class Allof(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class Allof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py
index 3fa73776b7..e40aab43eb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -104,8 +105,7 @@ class AllofCombinedWithAnyofOneof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -119,8 +119,7 @@ class AllofCombinedWithAnyofOneof(
]
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -134,8 +133,7 @@ class AllofCombinedWithAnyofOneof(
]
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.pyi
index 11ad8434f3..bc7e2eaf6b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_combined_with_anyof_oneof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -101,8 +102,7 @@ class AllofCombinedWithAnyofOneof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -116,8 +116,7 @@ class AllofCombinedWithAnyofOneof(
]
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -131,8 +130,7 @@ class AllofCombinedWithAnyofOneof(
]
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py
index 4afe6d9c30..da2bd54477 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -81,8 +82,7 @@ class AllofSimpleTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.pyi
index dbeb1f89bc..ce96198a3e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_simple_types.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -79,8 +80,7 @@ class AllofSimpleTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py
index 72a2d25a50..6677ca50a7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -64,23 +65,23 @@ class AllofWithBaseSchema(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -120,23 +121,23 @@ class AllofWithBaseSchema(
baz: MetaOapg.properties.baz
@typing.overload
- def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["baz", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["baz", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]):
return super().get_item_oapg(name)
@@ -156,8 +157,7 @@ class AllofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -175,23 +175,23 @@ class AllofWithBaseSchema(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi
index 72a2d25a50..6677ca50a7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_base_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -64,23 +65,23 @@ class AllofWithBaseSchema(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -120,23 +121,23 @@ class AllofWithBaseSchema(
baz: MetaOapg.properties.baz
@typing.overload
- def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["baz", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["baz", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["baz", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["baz", ], str]):
return super().get_item_oapg(name)
@@ -156,8 +157,7 @@ class AllofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -175,23 +175,23 @@ class AllofWithBaseSchema(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py
index 395ff56e8c..ccdf6237db 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,8 +37,7 @@ class AllofWithOneEmptySchema(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.pyi
index 395ff56e8c..ccdf6237db 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_one_empty_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,8 +37,7 @@ class AllofWithOneEmptySchema(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py
index 33ad4ab2b2..ca512486cf 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTheFirstEmptySchema(
all_of_1 = schemas.NumberSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.pyi
index 33ad4ab2b2..ca512486cf 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_first_empty_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTheFirstEmptySchema(
all_of_1 = schemas.NumberSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py
index 6cae347625..d243c83104 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTheLastEmptySchema(
all_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.pyi
index 6cae347625..d243c83104 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_the_last_empty_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTheLastEmptySchema(
all_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py
index 1259121f5f..0ee8f8a324 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTwoEmptySchemas(
all_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.pyi
index 1259121f5f..0ee8f8a324 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/allof_with_two_empty_schemas.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AllofWithTwoEmptySchemas(
all_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py
index 3be933464a..fe69e48143 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -59,8 +60,7 @@ class Anyof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.pyi
index 9f0d2d0131..d2bf4a03d2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -58,8 +59,7 @@ class Anyof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py
index 814c1b4c0d..6e0b801eef 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class AnyofComplexTypes(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class AnyofComplexTypes(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class AnyofComplexTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi
index 814c1b4c0d..6e0b801eef 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_complex_types.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class AnyofComplexTypes(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class AnyofComplexTypes(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class AnyofComplexTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py
index 96e9025ca2..a310a33c9d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -82,8 +83,7 @@ class AnyofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.pyi
index e18d96327d..65862600d5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_base_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -80,8 +81,7 @@ class AnyofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py
index 04896077a6..117c0374aa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AnyofWithOneEmptySchema(
any_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.pyi
index 04896077a6..117c0374aa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/anyof_with_one_empty_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class AnyofWithOneEmptySchema(
any_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py
index bc817fe24c..7c6cc33a3d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.pyi
index bc817fe24c..7c6cc33a3d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/array_type_matches_arrays.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py
index a71206cb3e..8e9d55f91a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.pyi
index a71206cb3e..8e9d55f91a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/boolean_type_matches_booleans.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py
index 3155db2ffe..76988d6593 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.pyi
index 0eecf5986b..d93f787d68 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_int.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py
index 30c0e9fa3d..184acb97b7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.pyi
index 334f1e65c6..1a082d5d3e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_number.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py
index c0ca428fa4..426ee59b91 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.pyi
index 33fcdc6840..95da8644ea 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/by_small_number.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py
index e814a3cb20..9fed78c490 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.pyi
index e814a3cb20..9fed78c490 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/date_time_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py
index 112b8753d3..8a3fa4bbab 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.pyi
index 112b8753d3..8a3fa4bbab 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/email_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py
index db67007082..8a04dd018d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWith0DoesNotMatchFalse(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.pyi
index db67007082..8a04dd018d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with0_does_not_match_false.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWith0DoesNotMatchFalse(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py
index fe7278667c..078b9e19aa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWith1DoesNotMatchTrue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.pyi
index fe7278667c..078b9e19aa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with1_does_not_match_true.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWith1DoesNotMatchTrue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py
index 37c44616d9..bf03d2da8b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,12 +38,10 @@ class EnumWithEscapedCharacters(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def FOO_BAR(cls):
return cls("foo\nbar")
- @classmethod
- @property
+ @schemas.classproperty
def FOO_BAR(cls):
return cls("foo\rbar")
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.pyi
index 37c44616d9..bf03d2da8b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_escaped_characters.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,12 +38,10 @@ class EnumWithEscapedCharacters(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def FOO_BAR(cls):
return cls("foo\nbar")
- @classmethod
- @property
+ @schemas.classproperty
def FOO_BAR(cls):
return cls("foo\rbar")
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py
index 9650778a64..232e3dc37b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWithFalseDoesNotMatch0(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def FALSE(cls):
return cls(schemas.BoolClass.FALSE)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.pyi
index 9650778a64..232e3dc37b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_false_does_not_match0.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWithFalseDoesNotMatch0(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def FALSE(cls):
return cls(schemas.BoolClass.FALSE)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py
index 18e063d3b0..f2dd03ea78 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWithTrueDoesNotMatch1(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def TRUE(cls):
return cls(schemas.BoolClass.TRUE)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.pyi
index 18e063d3b0..f2dd03ea78 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enum_with_true_does_not_match1.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class EnumWithTrueDoesNotMatch1(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def TRUE(cls):
return cls(schemas.BoolClass.TRUE)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py
index e53d26ced7..87c87f94b6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class EnumsInProperties(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def BAR(cls):
return cls("bar")
@@ -64,8 +64,7 @@ class EnumsInProperties(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def FOO(cls):
return cls("foo")
__annotations__ = {
@@ -76,29 +75,29 @@ class EnumsInProperties(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi
index e53d26ced7..87c87f94b6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/enums_in_properties.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class EnumsInProperties(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def BAR(cls):
return cls("bar")
@@ -64,8 +64,7 @@ class EnumsInProperties(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def FOO(cls):
return cls("foo")
__annotations__ = {
@@ -76,29 +75,29 @@ class EnumsInProperties(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py
index 1aac18dd68..b81f17e5b1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class ForbiddenProperty(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi
index 1aac18dd68..b81f17e5b1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/forbidden_property.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class ForbiddenProperty(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py
index 1e22098213..40942f67b8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.pyi
index 1e22098213..40942f67b8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/hostname_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py
index 9b118c5ae3..ccb986ac46 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.pyi
index 9b118c5ae3..ccb986ac46 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/integer_type_matches_integers.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py
index ddce77c612..3f5ff42395 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi
index 901f7e2126..33c88d1040 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_instance_should_not_raise_error_when_float_division_inf.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py
index 9d95c7c9e1..4752986369 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,23 +51,23 @@ class InvalidStringValueForDefault(
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi
index 26aef46d97..7ab2145d29 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/invalid_string_value_for_default.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -47,23 +48,23 @@ class InvalidStringValueForDefault(
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py
index b0751f0773..0eae025a87 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.pyi
index b0751f0773..0eae025a87 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv4_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py
index 179f1486c2..23a8aa658d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.pyi
index 179f1486c2..23a8aa658d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py
index 5048e6976f..ddbc508423 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.pyi
index 5048e6976f..ddbc508423 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/json_pointer_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py
index 05534d2f05..5a992b87f0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.pyi
index e5d25b0087..f0f3010b94 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py
index c3945df7c2..dc28bf37f3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi
index 945b0721cc..223cf29f83 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maximum_validation_with_unsigned_integer.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py
index c08e87f402..de40bec0b0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.pyi
index 581f362728..7c0a10e4fb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxitems_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py
index 4302596e65..c34f02ea11 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.pyi
index 8c53413530..1ed6a96b36 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py
index 563c8847ff..24dd02220f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi
index e07b313753..82013206b8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties0_means_the_object_is_empty.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py
index 12e24a587b..2adf12f750 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.pyi
index 245f240292..4252e69a43 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxproperties_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py
index c9fbe08be2..6409f72d48 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.pyi
index bc7b3723a1..a96f7db6e3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py
index b1c0f3f835..73e0b2613d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.pyi
index 62c1d5205a..c57929021a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minimum_validation_with_signed_integer.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py
index 7ee4404963..2ae9925d45 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.pyi
index 6b2dafc6b7..d84e653cfc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minitems_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py
index 1b21d9d504..acd0d6d892 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.pyi
index 221d2c728c..7e633c88ee 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minlength_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py
index a951d732a8..ebc2b1db51 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.pyi
index 04836e5e43..ea06a20b31 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/minproperties_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py
index 9032bfcd04..317bddb0d8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.pyi
index 9032bfcd04..317bddb0d8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/model_not.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py
index b680215feb..f6f8069357 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedAllofToCheckValidationSemantics(
all_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedAllofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi
index b680215feb..f6f8069357 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_allof_to_check_validation_semantics.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedAllofToCheckValidationSemantics(
all_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedAllofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py
index 092e76241b..65ae3adef0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedAnyofToCheckValidationSemantics(
any_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedAnyofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi
index 092e76241b..65ae3adef0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_anyof_to_check_validation_semantics.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedAnyofToCheckValidationSemantics(
any_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedAnyofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py
index efd3e685b5..36f1aad97f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.pyi
index efd3e685b5..36f1aad97f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_items.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py
index e49e480813..ebede9469d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedOneofToCheckValidationSemantics(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedOneofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi
index e49e480813..ebede9469d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nested_oneof_to_check_validation_semantics.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,8 +45,7 @@ class NestedOneofToCheckValidationSemantics(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -73,8 +73,7 @@ class NestedOneofToCheckValidationSemantics(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py
index a834b13a13..f04fa2d4d9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class NotMoreComplexSchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi
index a834b13a13..f04fa2d4d9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/not_more_complex_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class NotMoreComplexSchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py
index 93650f88ea..02c363ec5f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class NulCharactersInStrings(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def HELLOTHERE(cls):
return cls("hello\x00there")
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.pyi
index 93650f88ea..02c363ec5f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/nul_characters_in_strings.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class NulCharactersInStrings(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def HELLOTHERE(cls):
return cls("hello\x00there")
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py
index 0b2283eca2..4b1bff62a1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.pyi
index 0b2283eca2..4b1bff62a1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/null_type_matches_only_the_null_object.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py
index bc6ca284a9..e4d1d79b97 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.pyi
index bc6ca284a9..e4d1d79b97 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/number_type_matches_numbers.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py
index 2ccc914303..d74b394f06 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,29 +45,29 @@ class ObjectPropertiesValidation(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi
index 2ccc914303..d74b394f06 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/object_properties_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,29 +45,29 @@ class ObjectPropertiesValidation(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py
index f9921162f1..072f28a7fb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -59,8 +60,7 @@ class Oneof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.pyi
index 4c790bb65a..fcf3fb1022 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -58,8 +59,7 @@ class Oneof(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py
index e25fd20503..b38b5751a7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class OneofComplexTypes(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class OneofComplexTypes(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class OneofComplexTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi
index e25fd20503..b38b5751a7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_complex_types.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,23 +56,23 @@ class OneofComplexTypes(
bar: MetaOapg.properties.bar
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
@@ -111,23 +112,23 @@ class OneofComplexTypes(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
@@ -147,8 +148,7 @@ class OneofComplexTypes(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py
index 9793b9ff87..343181f846 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -82,8 +83,7 @@ class OneofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.pyi
index ee7493013e..dbd9a7fdf3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_base_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -80,8 +81,7 @@ class OneofWithBaseSchema(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py
index 1954ee5579..d0339f57ed 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class OneofWithEmptySchema(
one_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.pyi
index 1954ee5579..d0339f57ed 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_empty_schema.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class OneofWithEmptySchema(
one_of_1 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py
index 502c17fba7..06bb23edda 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -94,8 +95,7 @@ class OneofWithRequired(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi
index 502c17fba7..06bb23edda 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/oneof_with_required.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -94,8 +95,7 @@ class OneofWithRequired(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py
index 9c37d4f893..48773cbbe5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.pyi
index 5cc8bc0bd1..d4c18e7fc2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_is_not_anchored.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py
index c7bd7f6fb6..49594057cf 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.pyi
index 68c9978091..a2fb9d02f1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/pattern_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py
index 24d6a27b00..7c73a200e5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -52,53 +53,53 @@ class PropertiesWithEscapedCharacters(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi
index 24d6a27b00..7c73a200e5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/properties_with_escaped_characters.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -52,53 +53,53 @@ class PropertiesWithEscapedCharacters(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\nbar"]) -> MetaOapg.properties.foo_nbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\"bar"]) -> MetaOapg.properties.foo_bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\\bar"]) -> MetaOapg.properties.foo__bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\rbar"]) -> MetaOapg.properties.foo_rbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\tbar"]) -> MetaOapg.properties.foo_tbar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo\fbar"]) -> MetaOapg.properties.foo_fbar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\nbar"]) -> typing.Union[MetaOapg.properties.foo_nbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\"bar"]) -> typing.Union[MetaOapg.properties.foo_bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\\bar"]) -> typing.Union[MetaOapg.properties.foo__bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\rbar"]) -> typing.Union[MetaOapg.properties.foo_rbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\tbar"]) -> typing.Union[MetaOapg.properties.foo_tbar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo\nbar", "foo\"bar", "foo\\bar", "foo\rbar", "foo\tbar", "foo\fbar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py
index c914425049..344414e9cc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class PropertyNamedRefThatIsNotAReference(
@typing.overload
- def __getitem__(self, name: typing.Literal["$ref"]) -> MetaOapg.properties.ref: ...
+ def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["$ref", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["$ref", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi
index c914425049..344414e9cc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/property_named_ref_that_is_not_a_reference.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class PropertyNamedRefThatIsNotAReference(
@typing.overload
- def __getitem__(self, name: typing.Literal["$ref"]) -> MetaOapg.properties.ref: ...
+ def __getitem__(self, name: typing_extensions.Literal["$ref"]) -> MetaOapg.properties.ref: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["$ref", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["$ref", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["$ref", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py
index c21cd611da..a15df31054 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInAdditionalproperties(
class MetaOapg:
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference':
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.pyi
index c21cd611da..a15df31054 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_additionalproperties.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInAdditionalproperties(
class MetaOapg:
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def additional_properties() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
def __getitem__(self, name: typing.Union[str, ]) -> 'PropertyNamedRefThatIsNotAReference':
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py
index 2de501fa4a..979c66540f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInAllof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.pyi
index 2de501fa4a..979c66540f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_allof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInAllof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py
index 4370f3b49b..df7546c1c2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInAnyof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.pyi
index 4370f3b49b..df7546c1c2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_anyof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInAnyof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py
index 4336f90122..73663ab9c0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInItems(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
def __new__(
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.pyi
index 4336f90122..73663ab9c0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_items.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInItems(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def items() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
def __new__(
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py
index 733ca32e7a..b1362b851a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInNot(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.pyi
index 733ca32e7a..b1362b851a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_not.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class RefInNot(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py
index 37864ea4df..99be8069ed 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInOneof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.pyi
index 37864ea4df..99be8069ed 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_oneof.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class RefInOneof(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py
index 2c0ee55a64..00390b0805 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class RefInProperty(
class properties:
- @classmethod
- @property
- def a(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
__annotations__ = {
"a": a,
@@ -46,23 +46,23 @@ class RefInProperty(
@typing.overload
- def __getitem__(self, name: typing.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ...
+ def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["a", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["a", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi
index 2c0ee55a64..00390b0805 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ref_in_property.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class RefInProperty(
class properties:
- @classmethod
- @property
- def a(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def a() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
__annotations__ = {
"a": a,
@@ -46,23 +46,23 @@ class RefInProperty(
@typing.overload
- def __getitem__(self, name: typing.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ...
+ def __getitem__(self, name: typing_extensions.Literal["a"]) -> 'PropertyNamedRefThatIsNotAReference': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["a", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["a", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py
index 405d76c29d..464498e13f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class RequiredDefaultValidation(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi
index 405d76c29d..464498e13f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_default_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class RequiredDefaultValidation(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py
index a3005177ab..aa43367ca2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,29 +50,29 @@ class RequiredValidation(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi
index a3005177ab..aa43367ca2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,29 +50,29 @@ class RequiredValidation(
foo: MetaOapg.properties.foo
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", "bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", "bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py
index 626a3dcd01..98018693bc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class RequiredWithEmptyArray(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi
index 626a3dcd01..98018693bc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_empty_array.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,23 +43,23 @@ class RequiredWithEmptyArray(
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py
index efe9b35400..52a8999cd2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi
index efe9b35400..52a8999cd2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/required_with_escaped_characters.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py
index 66ad195987..bfa9cd3e29 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class SimpleEnumValidation(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_3(cls):
return cls(3)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.pyi
index 66ad195987..bfa9cd3e29 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/simple_enum_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class SimpleEnumValidation(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_3(cls):
return cls(3)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py
index 0549faf957..573e83bc99 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.pyi
index 0549faf957..573e83bc99 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/string_type_matches_strings.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py
index 3d1202dab3..57a001ad75 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["alpha"]) -> MetaOapg.properties.alpha: ...
+ def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["alpha", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["alpha", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi
index f4cbc0f77e..caec048424 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/the_default_keyword_does_not_do_anything_if_the_property_is_missing.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,23 +47,23 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["alpha"]) -> MetaOapg.properties.alpha: ...
+ def __getitem__(self, name: typing_extensions.Literal["alpha"]) -> MetaOapg.properties.alpha: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["alpha", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["alpha", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["alpha", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py
index ff92951a11..485edf4e3c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.pyi
index 7b17a2388f..c5ded11279 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_false_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py
index 25a3a5d827..9fd610f660 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.pyi
index 6e623acc8d..175556c680 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uniqueitems_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py
index 94c3f08531..c8202e8dcc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.pyi
index 94c3f08531..c8202e8dcc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py
index ec189721d8..8a66998c4f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.pyi
index ec189721d8..8a66998c4f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_reference_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py
index 384bda61c5..50fb98bcac 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.pyi
index 384bda61c5..50fb98bcac 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/uri_template_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py
index 5d589d988a..9d181743b1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.pyi
index 555147c9dd..25e7fbd789 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py
index e849345e3b..6b6aad1b77 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.pyi
index 827c8ee6ec..b072f5769c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_are_allowed_by_default_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py
index cf40f37bc6..b5f0df3456 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi
index 87e34a0177..d575d1c685 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py
index a23ba87456..b13a4db5f8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi
index 6100d68fd8..758b4e1458 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py
index 45532f4d7e..ed580b82ab 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi
index ef34f3b054..d499a70ec0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py
index 6f73be7c6e..4eb46ceb57 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.pyi
index e8286d91b7..60ba6149f6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py
index c3c452186c..4e2ae80d04 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi
index 7ca171be1a..e071ea77f1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py
index 28d3641c73..93d1a9272c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi
index b04a7889dc..e44333edda 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py
index 597293951d..82f3d20965 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi
index 1a01ffde7b..06fd162a1f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py
index ff2df6e5dd..f20c2387cf 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi
index 5cc1038e6f..1a72c9b8ae 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py
index 6cf56ae166..20eb1788e2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi
index fb210ad21a..176c4f8b2c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py
index 3a4995b0e7..5f554b1a1d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi
index fae50f24ef..19a2d2faa3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py
index 3a1ecd145e..0352c3702f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi
index bd198adf04..192aa4f69c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py
index a282c01610..e3cdd801ce 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi
index d673fb8d82..0f5688da5f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py
index fcf09c2a82..6291b17d5d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi
index 4dd486cbba..550f76088a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py
index 93accd2a9f..7a0c2e75cb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi
index dcd1a19960..bdffc46e92 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py
index 9b7f0b6943..0ea29561b9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi
index 816b2ab9ae..eb6d81170c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py
index 5abec19af4..169b8b2a45 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi
index 84f01a25a0..d925f9924b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py
index 9947ac08cc..d85026f9e8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi
index 266e0e175b..8c041d1c72 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py
index be93e7f9ce..94ae9d6b9d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi
index 2adbb93b45..3993efa159 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py
index e169218029..0910a13fa3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi
index 3f0b584464..36d5e3ab30 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py
index 042f5d4b80..91a8f4e79e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi
index 8c8f06bc6d..3b4aa6f83e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py
index 9f1a22e777..61318d6c15 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi
index 531cfb06e3..58a00c6557 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py
index a9653f2ce5..70c9c4adb4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi
index 60e3eb3b4c..e55ac83773 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py
index 0c6af22ac6..3dd0079389 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi
index 633540e57a..ab02d1d291 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py
index 692742a09a..c494044acb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi
index 5cabcc7dbb..1176a75ee7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py
index 542719ef1e..402f766def 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi
index ec13370fc6..557cd7d28f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py
index d440daa610..67e63b0793 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi
index f6495eeb73..9dca08f0d8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py
index 62d0bab902..0027bd0edd 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi
index cfcbc6ed27..7068a12c3f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py
index b6504b040e..48139406bb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi
index 2511d4d78e..d9a90d3279 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py
index 5ae1606e8a..75bca7a9bd 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi
index 4047b10dba..ef40355adc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py
index e73dbf079a..1c0ac97d06 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi
index c9b4e1df18..7dd7bffef9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py
index e4d9051181..849040ab75 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi
index 364f124473..f6b9fe70ca 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py
index ff6ec1e33c..024b72c736 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi
index 892f11a20c..43cd727410 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py
index 97260e7e3e..39e10fae46 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi
index e73cdb05fe..3aba71094c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py
index b0b3597682..c219571568 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi
index b006dc2e80..da20f09b8b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py
index 867af0ddbb..86c63e8613 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi
index 2c11566b8f..cf655dc834 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py
index 52133e8c3e..acc6b58ca3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi
index 6e855308da..a0fe21e85a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py
index 627bd4ca74..c4be0df8c1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi
index 2eae8530da..bfa19c4e27 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py
index 5371062591..791e11c7e1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi
index b865e049d3..7ebf68559e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py
index 759b864eed..82baa3c6f7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi
index 1d17a1c09e..389fa87125 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py
index 04c3d6b82a..0079983d6b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi
index db4475210a..8b95b9db9a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py
index 70933fa69a..302911bb64 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi
index 12d56cd718..d2d653f7f8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py
index bca536afa6..2a163fda70 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi
index 932deba58e..e9a2ca6e69 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py
index 6cf2619182..ab89cbd51a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi
index 5fbaba5b85..122e426ea1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py
index bc9cc9ef18..790e6b1f16 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi
index 3ad81204c7..5ac55630f3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py
index b1c54e4cb0..5dab68c54b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi
index d5d275e814..efbd2d4523 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py
index 4b1ac5b567..330ee1d704 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi
index 728d4e45b5..a92e09bb85 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py
index 1b9df17476..7bb6109e92 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi
index 6dbc80bcc1..7958e9d7d5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py
index 3d6f89cb28..4779c8462a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi
index 9b177d3572..6e9b84a184 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py
index 1faeb4f1e1..c7755c17e6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi
index daac5dff3e..6e7649ccf3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py
index 5e131873e2..f730d31d60 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi
index 8fba43ad23..61ea779a72 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py
index 4341075020..2d230e0cfb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,23 +52,23 @@ class SchemaForRequestBodyApplicationJson(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi
index 5498ab15c7..584ba00cf8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -48,23 +50,23 @@ class SchemaForRequestBodyApplicationJson(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py
index df347fdf1f..e7d0b18692 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.pyi
index 31d8079046..b791ed43f4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_not_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py
index 775d63b1e1..649b84303c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi
index cf6fa44b7d..87a26d9477 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py
index 500ec4593a..84484c13f6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi
index 9647e5f5f1..750f0f65ad 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py
index 31ee731621..2629e12769 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi
index a211fd66d2..38e54c85a2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py
index 0e311e7074..84ca8ee87d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi
index 74e199bd95..8890fcc4f9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py
index 404b02fb86..2b0ee54844 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi
index c09dc531ff..0220145ecb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py
index 169f6045b9..e73ff6bb6c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi
index 828178f29b..d263882394 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py
index 6f6dedf7be..3cd6520a22 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi
index fbac7449ec..5d3b6b34a0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py
index 375cb4a0c9..62a4284268 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi
index 1e816b2b6c..eeb2e4277b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py
index 040ba2dc20..dc18b181d7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi
index 33535c96aa..93b507c78a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py
index 39d31e49de..30049110ff 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi
index a9471c7a3f..330e13c653 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py
index 59b661c7f1..e9f5746f22 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi
index 93ebe45570..72d9dc32bb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py
index a4c1198d90..0aee314d2d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi
index 62bbee8750..014a5a449d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py
index 7b8476e225..2e5a74862f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi
index 01d63ff5e1..936055dcd8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py
index 9a37aca89b..dbcef6a143 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi
index 1cc57d20f7..85dcbf6318 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py
index b4291bfc73..79a9a3d746 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi
index 8f941fa334..8579929fbc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py
index d9b1c40e66..dba5814622 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi
index ba4fc51016..c2cf146102 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py
index b489c1b41b..55240469c5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi
index d21ca8195f..15fe13e71c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py
index f48f0c4755..7084e02696 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi
index 398246d509..92fe301b68 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py
index 9fe8bdd2ff..67420c4380 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +39,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi
index fc08626d57..b764ab5d1a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,9 +37,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py
index 8f84345a46..bc819760be 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi
index 5af5d8087e..2c7e0962e0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py
index 072f6a374d..c90390d336 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi
index 53029ae2c0..1c8577a746 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py
index 8f07e1ca78..d69ac9a8f7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi
index 87a581b696..2f164dcd78 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py
index d699e0a697..53032cc735 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi
index 8f564de339..c8d141433c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py
index 59e112edd5..d4e6b18bf5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi
index 2067194de9..05070e8b80 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py
index 9dbf8e9c1a..92d5b60538 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi
index b9ed80af64..ddc024fd9d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py
index 5345bb5bb4..1b16f9380e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi
index da8f35b389..7bb345e5f6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py
index fb5d432f0b..70baebb1f6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi
index 4f8899f136..50d8f7f9f3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py
index 221fcb5e2a..19e0a5ce46 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi
index 3dbbff3d2c..b0d69d7aa9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py
index 4c42d4d7ad..fd7400f111 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi
index 8fd7d1c438..03457ae0a3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py
index e0e837285e..cf364bf948 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi
index 2b07e45785..dfe7f9041c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py
index 892f3196f0..fe898546b5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi
index 9351f64143..7f3fa41ba2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py
index 902c984961..49bd115c0c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi
index d3a7da6a05..a7fe122f3a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py
index 4604e2962d..aef3129629 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi
index 848f7c20af..e6ff0166fa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py
index f9f5fe9931..d483b56496 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi
index 72eca1ace5..db7eb16543 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py
index 98533244fa..43d6a536f1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi
index 2edc545181..689d638523 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py
index 8b86d10258..27943fe18a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi
index fab122c2ab..73cab792eb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py
index 8f4aaaf68c..bd2a1a7f0d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi
index c62009c3eb..f5bddfa948 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py
index aa47aaae9b..ed6ee20d1e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi
index d1084b7f49..28401bd1cd 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py
index 652f096af5..bb8cfc8a81 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi
index b0c9ed8488..d04ed5d067 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py
index 73295c1908..3503c97dde 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi
index 0f44760d75..7030b29ba8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py
index 6598aca2b9..6e77ac1422 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi
index d718516ab3..dfbabc6c18 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py
index eda0c68c3b..edbc007e87 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi
index 3d2ee62389..d189cb26e5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py
index 40a242ba36..389f9b8420 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi
index bfd3d1a1dc..b467287f0a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py
index ae5b69b15d..51c81cc92a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi
index a2500fb711..f502a2a7ec 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py
index 7d948fee18..3abf106625 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi
index 1e37284e6f..43650cf137 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py
index fd98c0195f..23c53bc9e6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi
index c401423027..507becb0fc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py
index 668a256c85..b12f52012a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi
index bd259f4693..9b227c718c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py
index 1afbaa3186..4d47659f0b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi
index c1e4e60219..f1c8912f7b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py
index c7d9c2302f..5da3279532 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi
index 0955b58908..e59f582c86 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py
index 9f614137d3..1414fa62e8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi
index ebc7ba6de7..d5676f0358 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py
index 9f574cff1c..a95f03b4e4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi
index 85d8591f4f..8b5b589c46 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py
index 7ff10edacc..41034fa697 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi
index e2591e939a..61b3d81b32 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py
index 8b18c46d73..e904ed1a38 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi
index c330266cae..3d9ebcd6a0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py
index fbe437f79f..2c4392f1e1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi
index 22c37efa5c..62adbca6a8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py
index 521a817187..f2376a2df1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi
index 52edc5c6d3..18588164a4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py
index 91232038ad..a87120ac47 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi
index d778b06d44..4429c79bc4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py
index 52fed19315..a87fc39eb2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi
index d911cee0ab..4fb57b1dde 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py
index 6c03a7fcfb..d5b4bde7a6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi
index fb2335926b..9f60984e68 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py
index 108f2eaf75..b37e49aabc 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi
index 5043b737ad..cdc047c43e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py
index 044da6eda9..98ebe09f38 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi
index e304f34b5c..ce05cb3a3b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py
index a240408971..159ce75a12 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi
index 6e1fcb2538..83e53e24ef 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py
index fc8ea58fae..bc9fca7209 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi
index ae6a2493f1..3e30e6e603 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py
index f16619257e..fad8e99f1c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi
index 9bb128fe4b..7d3e875455 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py
index 2641beac51..188dcc891d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi
index 3bd2018f1b..d1d8399b74 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py
index 791de52977..70954d9069 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi
index 3de2b2eeee..de78604fa0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py
index c0378aff5d..02dc4227f6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi
index 8d8ef9baa5..28222ab888 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py
index b46c984122..35d6dd815f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi
index e086ef309c..98e0646ddd 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py
index 741eb61477..dacd310a9d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi
index e5f090dcd9..25cfffb07b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py
index 82af93d0f4..435bb55a50 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi
index 1839b17de7..5d0ca450c0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py
index 0f84a6d7d4..4bca287695 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi
index ea393b976d..ee0046c4b6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py
index a65f0a3409..b9415262a1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi
index d6f6eb3c85..af9bf3e449 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py
index a3af8c9b64..7ae8eea54d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi
index 80e3afb7d3..f9b7b2d422 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py
index d60cd17558..5a63caab15 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi
index 72c459ea1a..8a6f7dd62a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py
index c234ac0384..b6728ece2d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi
index 1fde7125da..012642e4f1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py
index 773e704f4a..9cd2ab6c99 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi
index 9621f95132..62373744f4 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py
index 28bd129643..1e23926f48 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi
index 1d20696526..3e70643f89 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py
index 907e9a7de0..83e3cf4aa3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi
index e6ab149463..79c039afac 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py
index bb1f4cfeaa..2576206d66 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi
index caf7b5916b..6b00938292 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py
index fa2c3b26a2..c11c502c99 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi
index 79a3e066d8..963b825076 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py
index b8e07bbcfb..1df42fe437 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi
index 3f1f932685..e2be043aa1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py
index 617b656a0a..f0c3b54b66 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi
index 8f2c529f36..9f96ff8fc1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py
index a41c46f5ed..9c70aa0da9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi
index 1a6c697449..c943fe0c34 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py
index 24c71c5f7c..ef2dfc15ad 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi
index 1dca41dd73..57f3c654b5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py
index b096344fbb..026c086eae 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi
index 54000ec66f..cd89ba08e8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py
index 7a5ddd3a3e..741442c170 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi
index 3a4083a3a7..cc87b6112f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py
index 810d8878f7..13c61e239a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +51,23 @@ class SchemaFor200ResponseBodyApplicationJson(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi
index 9e669def89..fff2e73fd7 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -47,23 +49,23 @@ class SchemaFor200ResponseBodyApplicationJson(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py
index e4097df4b5..c77e664773 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi
index 7ae90e93f9..5f30622b8e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py
index 343a9c40f5..2c3c024b32 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi
index fd74c3c419..c16dc293e2 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py
index c5074b2f20..b715f68319 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi
index d1f44346ee..89cde51ed0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py
index 264bb4efbe..271b13e2fe 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi
index dc19090280..e945e45b29 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py
index 0b8c204667..475dc9ab22 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi
index ca3943ed19..c58758a9b3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py
index 4f9c05858e..5cc62d65ea 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi
index 2909a56ef7..6a15b0be4a 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py
index 4241a84d26..495b4e83a3 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi
index 9f530000ee..1de9c2812e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py
index bbc11c72e1..0eef467c0c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi
index 721a67abfc..3c51bc63fa 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py
index 42c987afda..fbdb23c28b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi
index cd1e6a451c..20a5b3d90e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py
index 159642ae75..13d5070129 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi
index 0f59fb24f6..48c41793c5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py
index 298d72afdc..75138d3605 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi
index c1131f6933..ca3ec89b50 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py
index d3851f8845..9379092884 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi
index d6cdec96d5..97b297ceac 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py
index 1f50114b1c..cac793efa5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi
index 1fd3d3f543..7b04aed839 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py
index 09df5b7244..8f5b60de97 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi
index 464388f319..ea8e9df1a0 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py
index 0dbfd37158..211b708f84 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi
index c3aa192672..661d27604e 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py
index d82d734d9b..3646ddfac5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi
index a084ba3040..2d2b7b1896 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py
index e1ad579102..ba24667423 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi
index 4e78e22126..5056c8c3d8 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py
index 8468b0c162..e9c7e40f86 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi
index 3ad71b9477..7979d632da 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py
index d69cfd93f5..aba91337cb 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi
index a2da4dfa49..556bcc2059 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py
index b9f01c0f0e..bc13e0d26f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +38,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi
index 68f09071f6..41a03ddcec 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +36,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def not_schema(cls) -> typing.Type['PropertyNamedRefThatIsNotAReference']:
+ @staticmethod
+ def not_schema() -> typing.Type['PropertyNamedRefThatIsNotAReference']:
return PropertyNamedRefThatIsNotAReference
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py
index 64286c3f89..4423ea9449 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi
index 92fc8877b6..f86ae48446 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py
index cb91ee9203..a9eccf664b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi
index 5dfadfa5d0..220be3be53 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py
index 2b65e204eb..f7784ead0f 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi
index c406c81113..33f9829874 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py
index c2dca209de..15344cdfa1 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi
index 52f7b1b1e5..e0c69bcc70 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py
index 5b14f80901..545abfd36d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi
index 5fa12af753..2eed312b7b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py
index d200e6968b..7cea48d8b9 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi
index d2e92e7592..f9918ddfea 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py
index a94992c8a5..0b13886849 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi
index 606b247e96..cba5ecd208 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py
index bf63a85c1b..24f9a28f28 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi
index d8f405ba18..29eee86cd6 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py
index 5d17694a37..23de1c70c5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi
index c15b35c0d8..e982ab5f7d 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py
index a1d6958e4a..32ec15a6bf 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi
index 2e58176b1e..6b02a89007 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py
index 6399870252..531cab800b 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi
index b4a7755eb7..642059237c 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py
index 3d71e3c44c..252fb5f084 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi
index d57bad9d7f..718073cf86 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py
index b8a1defada..d160addbec 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi
index 0942230e84..09e8886136 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py
index 5ab024b1b1..b418915fba 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi
index 8045d6f417..7e04b30ce5 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py
index 42f7294567..b9539f2c24 100644
--- a/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py
+++ b/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/schemas.py
@@ -15,6 +15,7 @@ import functools
import decimal
import io
import re
+import types
import typing
import uuid
@@ -183,9 +184,17 @@ class Singleton:
return f'<{self.__class__.__name__}: {super().__repr__()}>'
+class classproperty:
+
+ def __init__(self, fget):
+ self.fget = fget
+
+ def __get__(self, owner_self, owner_cls):
+ return self.fget(owner_cls)
+
+
class NoneClass(Singleton):
- @classmethod
- @property
+ @classproperty
def NONE(cls):
return cls(None)
@@ -194,17 +203,15 @@ class NoneClass(Singleton):
class BoolClass(Singleton):
- @classmethod
- @property
+ @classproperty
def TRUE(cls):
return cls(True)
- @classmethod
- @property
+ @classproperty
def FALSE(cls):
return cls(False)
- @functools.cache
+ @functools.lru_cache()
def __bool__(self) -> bool:
for key, instance in self._instances.items():
if self is instance:
@@ -256,6 +263,16 @@ class Schema:
return "is {0}".format(all_class_names[0])
return "is one of [{0}]".format(", ".join(all_class_names))
+ @staticmethod
+ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']:
+ if isinstance(item_cls, types.FunctionType):
+ # referenced schema
+ return item_cls()
+ elif isinstance(item_cls, staticmethod):
+ # referenced schema
+ return item_cls.__func__()
+ return item_cls
+
@classmethod
def __type_error_message(
cls, var_value=None, var_name=None, valid_classes=None, key_type=None
@@ -863,39 +880,19 @@ class ValidatorBase:
)
-class Validator(typing.Protocol):
- @classmethod
- def _validate_oapg(
- cls,
- arg,
- validation_metadata: ValidationMetadata,
- ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:
- pass
-
-
class EnumMakerBase:
pass
-class EnumMakerInterface(Validator):
- @classmethod
- @property
- def _enum_value_to_name(
- cls
- ) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
- pass
-
-
-def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface:
+def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> 'SchemaEnumMaker':
class SchemaEnumMaker(EnumMakerBase):
@classmethod
- @property
def _enum_value_to_name(
- cls
+ cls
) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
pass
try:
- super_enum_value_to_name = super()._enum_value_to_name
+ super_enum_value_to_name = super()._enum_value_to_name()
except AttributeError:
return enum_value_to_name
intersection = dict(enum_value_to_name.items() & super_enum_value_to_name.items())
@@ -912,9 +909,9 @@ def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str,
Validates that arg is in the enum's allowed values
"""
try:
- cls._enum_value_to_name[arg]
+ cls._enum_value_to_name()[arg]
except KeyError:
- raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name))
+ raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name()))
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
return SchemaEnumMaker
@@ -1041,7 +1038,7 @@ class StrBase(ValidatorBase):
class UUIDBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_uuid_oapg(self) -> uuid.UUID:
return uuid.UUID(self)
@@ -1107,7 +1104,7 @@ DEFAULT_ISOPARSER = CustomIsoparser()
class DateBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_date_oapg(self) -> date:
return DEFAULT_ISOPARSER.parse_isodate(self)
@@ -1138,7 +1135,7 @@ class DateBase:
class DateTimeBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_datetime_oapg(self) -> datetime:
return DEFAULT_ISOPARSER.parse_isodatetime(self)
@@ -1175,7 +1172,7 @@ class DecimalBase:
"""
@property
- @functools.cache
+ @functools.lru_cache()
def as_decimal_oapg(self) -> decimal.Decimal:
return decimal.Decimal(self)
@@ -1344,6 +1341,7 @@ class ListBase(ValidatorBase):
# if we have definitions for an items schema, use it
# otherwise accept anything
item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema)
+ item_cls = cls._get_class_oapg(item_cls)
path_to_schemas = {}
for i, value in enumerate(list_items):
item_validation_metadata = ValidationMetadata(
@@ -1477,7 +1475,7 @@ class Discriminable:
"""
if not hasattr(cls.MetaOapg, 'discriminator'):
return None
- disc = cls.MetaOapg.discriminator
+ disc = cls.MetaOapg.discriminator()
if disc_property_name not in disc:
return None
discriminated_cls = disc[disc_property_name].get(disc_payload_value)
@@ -1492,21 +1490,24 @@ class Discriminable:
):
return None
# TODO stop traveling if a cycle is hit
- for allof_cls in getattr(cls.MetaOapg, 'all_of', []):
- discriminated_cls = allof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for oneof_cls in getattr(cls.MetaOapg, 'one_of', []):
- discriminated_cls = oneof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for anyof_cls in getattr(cls.MetaOapg, 'any_of', []):
- discriminated_cls = anyof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
+ if hasattr(cls.MetaOapg, 'all_of'):
+ for allof_cls in cls.MetaOapg.all_of():
+ discriminated_cls = allof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'one_of'):
+ for oneof_cls in cls.MetaOapg.one_of():
+ discriminated_cls = oneof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'any_of'):
+ for anyof_cls in cls.MetaOapg.any_of():
+ discriminated_cls = anyof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
return None
@@ -1605,9 +1606,7 @@ class DictBase(Discriminable, ValidatorBase):
raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format(
value, cls, validation_metadata.path_to_item+(property_name,)
))
- if isinstance(schema, classmethod):
- # referenced schema, call classmethod property
- schema = schema.__func__.fget(properties)
+ schema = cls._get_class_oapg(schema)
arg_validation_metadata = ValidationMetadata(
from_server=validation_metadata.from_server,
configuration=validation_metadata.configuration,
@@ -1678,7 +1677,7 @@ class DictBase(Discriminable, ValidatorBase):
other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata)
update(_path_to_schemas, other_path_to_schemas)
try:
- discriminator = cls.MetaOapg.discriminator
+ discriminator = cls.MetaOapg.discriminator()
except AttributeError:
return _path_to_schemas
# discriminator exists
@@ -1863,7 +1862,7 @@ class ComposedBase(Discriminable):
@classmethod
def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata):
path_to_schemas = defaultdict(set)
- for allof_cls in cls.MetaOapg.all_of:
+ for allof_cls in cls.MetaOapg.all_of():
if validation_metadata.validation_ran_earlier(allof_cls):
continue
other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata)
@@ -1879,7 +1878,7 @@ class ComposedBase(Discriminable):
):
oneof_classes = []
path_to_schemas = defaultdict(set)
- for oneof_cls in cls.MetaOapg.one_of:
+ for oneof_cls in cls.MetaOapg.one_of():
if oneof_cls in path_to_schemas[validation_metadata.path_to_item]:
oneof_classes.append(oneof_cls)
continue
@@ -1914,7 +1913,7 @@ class ComposedBase(Discriminable):
):
anyof_classes = []
path_to_schemas = defaultdict(set)
- for anyof_cls in cls.MetaOapg.any_of:
+ for anyof_cls in cls.MetaOapg.any_of():
if validation_metadata.validation_ran_earlier(anyof_cls):
anyof_classes.append(anyof_cls)
continue
@@ -2004,8 +2003,9 @@ class ComposedBase(Discriminable):
)
update(path_to_schemas, other_path_to_schemas)
not_cls = None
- if hasattr(cls, 'MetaOapg'):
- not_cls = getattr(cls.MetaOapg, 'not_schema', None)
+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'):
+ not_cls = cls.MetaOapg.not_schema
+ not_cls = cls._get_class_oapg(not_cls)
if not_cls:
other_path_to_schemas = None
not_exception = ApiValueError(
@@ -2374,10 +2374,12 @@ class BinarySchema(
BinaryMixin
):
class MetaOapg:
- one_of = [
- BytesSchema,
- FileSchema,
- ]
+ @staticmethod
+ def one_of():
+ return [
+ BytesSchema,
+ FileSchema,
+ ]
def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration):
return super().__new__(cls, arg)
@@ -2456,7 +2458,7 @@ class DictSchema(
schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema}
-@functools.cache
+@functools.lru_cache()
def get_new_class(
class_name: str,
bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...]
diff --git a/samples/openapi3/client/petstore/python-experimental/README.md b/samples/openapi3/client/petstore/python-experimental/README.md
index 668cc0f2a7..de83b18c1f 100644
--- a/samples/openapi3/client/petstore/python-experimental/README.md
+++ b/samples/openapi3/client/petstore/python-experimental/README.md
@@ -9,9 +9,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https:
## Requirements.
-Python >=3.9
-v3.9 is needed so one can combine classmethod and property decorators to define
-object schema properties as classes
+Python >=3.7
## Migration from other generators like python and python-legacy
@@ -52,6 +50,16 @@ object schema properties as classes
- A type hint is also generated for additionalProperties accessed using this method
- So you will need to update you code to use some_instance['optionalProp'] to access optional property
and additionalProperty values
+8. The location of the api classes has changed
+ - Api classes are located in your_package.apis.tags.some_api
+ - This change was made to eliminate redundant code generation
+ - Legacy generators generated the same endpoint twice if it had > 1 tag on it
+ - This generator defines an endpoint in one class, then inherits that class to generate
+ apis by tags and by paths
+ - This change reduces code and allows quicker run time if you use the path apis
+ - path apis are at your_package.apis.paths.some_path
+ - Those apis will only load their needed models, which is less to load than all of the resources needed in a tag api
+ - So you will need to update your import paths to the api classes
### Why are Oapg and _oapg used in class and method names?
Classes can have arbitrarily named properties set on them
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/api_client.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/api_client.py
index 7f70052b8a..b5d32822d1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/api_client.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/api_client.py
@@ -20,6 +20,7 @@ from multiprocessing.pool import ThreadPool
import re
import tempfile
import typing
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from urllib.parse import urlparse, quote
@@ -708,7 +709,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
)
@staticmethod
- def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict[str, str]:
+ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHeaderDict:
data = tuple(t for t in in_data if t)
headers = HTTPHeaderDict()
if not data:
@@ -720,7 +721,7 @@ class HeaderParameter(ParameterBase, StyleSimpleSerializer):
self,
in_data: typing.Union[
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict]
- ) -> HTTPHeaderDict[str, str]:
+ ) -> HTTPHeaderDict:
if self.schema:
cast_in_data = self.schema(in_data)
cast_in_data = self._json_encoder.default(cast_in_data)
@@ -1269,7 +1270,7 @@ class Api:
self.api_client = api_client
@staticmethod
- def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing.TypedDict], data: typing.Dict[str, typing.Any]):
+ def _verify_typed_dict_inputs_oapg(cls: typing.Type[typing_extensions.TypedDict], data: typing.Dict[str, typing.Any]):
"""
Ensures that:
- required keys are present
@@ -1341,9 +1342,9 @@ class Api:
return host
-class SerializedRequestBody(typing.TypedDict, total=False):
+class SerializedRequestBody(typing_extensions.TypedDict, total=False):
body: typing.Union[str, bytes]
- fields: typing.Tuple[typing.Union[RequestField, tuple[str, str]], ...]
+ fields: typing.Tuple[typing.Union[RequestField, typing.Tuple[str, str]], ...]
class RequestBody(StyleFormSerializer, JSONDetector):
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/path_to_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/path_to_api.py
index b6a7d1053e..271292fb87 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/path_to_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/path_to_api.py
@@ -1,4 +1,4 @@
-import typing
+import typing_extensions
from petstore_api.paths import PathValues
from petstore_api.apis.paths.foo import Foo
@@ -49,7 +49,7 @@ from petstore_api.apis.paths.fake_response_without_schema import FakeResponseWit
from petstore_api.apis.paths.fake_json_patch import FakeJsonPatch
from petstore_api.apis.paths.fake_delete_coffee_id import FakeDeleteCoffeeId
-PathToApi = typing.TypedDict(
+PathToApi = typing_extensions.TypedDict(
'PathToApi',
{
PathValues.FOO: Foo,
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_1.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_1.py
deleted file mode 100644
index 83062b30af..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_1.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from petstore_api.paths.fake_1.get import ApiForget
-from petstore_api.paths.fake_1.post import ApiForpost
-from petstore_api.paths.fake_1.delete import ApiFordelete
-from petstore_api.paths.fake_1.patch import ApiForpatch
-
-
-class Fake(
- ApiForget,
- ApiForpost,
- ApiFordelete,
- ApiForpatch,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_2.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_2.py
deleted file mode 100644
index a34464be9e..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_2.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from petstore_api.paths.fake_2.get import ApiForget
-from petstore_api.paths.fake_2.post import ApiForpost
-from petstore_api.paths.fake_2.delete import ApiFordelete
-from petstore_api.paths.fake_2.patch import ApiForpatch
-
-
-class Fake(
- ApiForget,
- ApiForpost,
- ApiFordelete,
- ApiForpatch,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_3.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_3.py
deleted file mode 100644
index 15eda063aa..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/fake_3.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from petstore_api.paths.fake_3.get import ApiForget
-from petstore_api.paths.fake_3.post import ApiForpost
-from petstore_api.paths.fake_3.delete import ApiFordelete
-from petstore_api.paths.fake_3.patch import ApiForpatch
-
-
-class Fake(
- ApiForget,
- ApiForpost,
- ApiFordelete,
- ApiForpatch,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_2.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_2.py
deleted file mode 100644
index b193d7a47e..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_2.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from petstore_api.paths.pet_2.put import ApiForput
-from petstore_api.paths.pet_2.post import ApiForpost
-
-
-class Pet(
- ApiForput,
- ApiForpost,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_1.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_1.py
deleted file mode 100644
index 764781f23a..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_1.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from petstore_api.paths.pet_pet_id_1.get import ApiForget
-from petstore_api.paths.pet_pet_id_1.post import ApiForpost
-from petstore_api.paths.pet_pet_id_1.delete import ApiFordelete
-
-
-class PetPetId(
- ApiForget,
- ApiForpost,
- ApiFordelete,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_3.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_3.py
deleted file mode 100644
index 23ab2d0f23..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/pet_pet_id_3.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from petstore_api.paths.pet_pet_id_3.get import ApiForget
-from petstore_api.paths.pet_pet_id_3.post import ApiForpost
-from petstore_api.paths.pet_pet_id_3.delete import ApiFordelete
-
-
-class PetPetId(
- ApiForget,
- ApiForpost,
- ApiFordelete,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/store_order_order_id_1.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/store_order_order_id_1.py
deleted file mode 100644
index e069792aaf..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/store_order_order_id_1.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from petstore_api.paths.store_order_order_id_1.get import ApiForget
-from petstore_api.paths.store_order_order_id_1.delete import ApiFordelete
-
-
-class StoreOrderOrderId(
- ApiForget,
- ApiFordelete,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_1.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_1.py
deleted file mode 100644
index ba5e52ba7b..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_1.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from petstore_api.paths.user_username_1.get import ApiForget
-from petstore_api.paths.user_username_1.put import ApiForput
-from petstore_api.paths.user_username_1.delete import ApiFordelete
-
-
-class UserUsername(
- ApiForget,
- ApiForput,
- ApiFordelete,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_2.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_2.py
deleted file mode 100644
index 053219f8e4..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/paths/user_username_2.py
+++ /dev/null
@@ -1,11 +0,0 @@
-from petstore_api.paths.user_username_2.get import ApiForget
-from petstore_api.paths.user_username_2.put import ApiForput
-from petstore_api.paths.user_username_2.delete import ApiFordelete
-
-
-class UserUsername(
- ApiForget,
- ApiForput,
- ApiFordelete,
-):
- pass
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tag_to_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tag_to_api.py
index c94ea467e2..ad42a5d1de 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tag_to_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tag_to_api.py
@@ -1,4 +1,4 @@
-import typing
+import typing_extensions
from petstore_api.apis.tags import TagValues
from petstore_api.apis.tags.pet_api import PetApi
@@ -9,7 +9,7 @@ from petstore_api.apis.tags.default_api import DefaultApi
from petstore_api.apis.tags.fake_api import FakeApi
from petstore_api.apis.tags.fake_classname_tags123_api import FakeClassnameTags123Api
-TagToApi = typing.TypedDict(
+TagToApi = typing_extensions.TypedDict(
'TagToApi',
{
TagValues.PET: PetApi,
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/fake_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/fake_api.py
index d4ba07c2e3..a206fb090e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/fake_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/fake_api.py
@@ -19,10 +19,10 @@ from petstore_api.paths.fake_case_sensitive_params.put import CaseSensitiveParam
from petstore_api.paths.fake.patch import ClientModel
from petstore_api.paths.fake_refs_composed_one_of_number_with_validations.post import ComposedOneOfDifferentTypes
from petstore_api.paths.fake_delete_coffee_id.delete import DeleteCoffee
-from petstore_api.paths.fake_1.post import EndpointParameters
-from petstore_api.paths.fake_2.get import EnumParameters
+from petstore_api.paths.fake.post import EndpointParameters
+from petstore_api.paths.fake.get import EnumParameters
from petstore_api.paths.fake_health.get import FakeHealthGet
-from petstore_api.paths.fake_3.delete import GroupParameters
+from petstore_api.paths.fake.delete import GroupParameters
from petstore_api.paths.fake_inline_additional_properties.post import InlineAdditionalProperties
from petstore_api.paths.fake_inline_composition_.post import InlineComposition
from petstore_api.paths.fake_json_form_data.get import JsonFormData
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/pet_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/pet_api.py
index 65658ac47f..402e69c9cf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/pet_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/pet_api.py
@@ -13,9 +13,9 @@ from petstore_api.paths.pet.post import AddPet
from petstore_api.paths.pet_pet_id.delete import DeletePet
from petstore_api.paths.pet_find_by_status.get import FindPetsByStatus
from petstore_api.paths.pet_find_by_tags.get import FindPetsByTags
-from petstore_api.paths.pet_pet_id_1.get import GetPetById
-from petstore_api.paths.pet_2.put import UpdatePet
-from petstore_api.paths.pet_pet_id_3.post import UpdatePetWithForm
+from petstore_api.paths.pet_pet_id.get import GetPetById
+from petstore_api.paths.pet.put import UpdatePet
+from petstore_api.paths.pet_pet_id.post import UpdatePetWithForm
from petstore_api.paths.fake_pet_id_upload_image_with_required_file.post import UploadFileWithRequiredFile
from petstore_api.paths.pet_pet_id_upload_image.post import UploadImage
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/store_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/store_api.py
index 941851b33a..b9e1d09ed5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/store_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/store_api.py
@@ -11,7 +11,7 @@
from petstore_api.paths.store_order_order_id.delete import DeleteOrder
from petstore_api.paths.store_inventory.get import GetInventory
-from petstore_api.paths.store_order_order_id_1.get import GetOrderById
+from petstore_api.paths.store_order_order_id.get import GetOrderById
from petstore_api.paths.store_order.post import PlaceOrder
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/user_api.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/user_api.py
index 0caffae395..b84994811c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/user_api.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/apis/tags/user_api.py
@@ -13,10 +13,10 @@ from petstore_api.paths.user.post import CreateUser
from petstore_api.paths.user_create_with_array.post import CreateUsersWithArrayInput
from petstore_api.paths.user_create_with_list.post import CreateUsersWithListInput
from petstore_api.paths.user_username.delete import DeleteUser
-from petstore_api.paths.user_username_1.get import GetUserByName
+from petstore_api.paths.user_username.get import GetUserByName
from petstore_api.paths.user_login.get import LoginUser
from petstore_api.paths.user_logout.get import LogoutUser
-from petstore_api.paths.user_username_2.put import UpdateUser
+from petstore_api.paths.user_username.put import UpdateUser
class UserApi(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py
index 91c05f7740..79ca58cf23 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -214,65 +215,65 @@ class AdditionalPropertiesClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["map_property"]) -> MetaOapg.properties.map_property: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ...
+ def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ...
+ def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi
index 91c05f7740..79ca58cf23 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_class.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -214,65 +215,65 @@ class AdditionalPropertiesClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["map_property"]) -> MetaOapg.properties.map_property: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_property"]) -> MetaOapg.properties.map_property: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_of_map_property"]) -> MetaOapg.properties.map_of_map_property: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ...
+ def __getitem__(self, name: typing_extensions.Literal["anytype_1"]) -> MetaOapg.properties.anytype_1: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_1: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_2: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> MetaOapg.properties.map_with_undeclared_properties_anytype_3: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ...
+ def __getitem__(self, name: typing_extensions.Literal["empty_map"]) -> MetaOapg.properties.empty_map: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> MetaOapg.properties.map_with_undeclared_properties_string: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_property"]) -> typing.Union[MetaOapg.properties.map_property, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_of_map_property"]) -> typing.Union[MetaOapg.properties.map_of_map_property, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anytype_1"]) -> typing.Union[MetaOapg.properties.anytype_1, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_1"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_1, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_2"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_2, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_anytype_3"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_anytype_3, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["empty_map"]) -> typing.Union[MetaOapg.properties.empty_map, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_property", "map_of_map_property", "anytype_1", "map_with_undeclared_properties_anytype_1", "map_with_undeclared_properties_anytype_2", "map_with_undeclared_properties_anytype_3", "empty_map", "map_with_undeclared_properties_string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.py
index 9096dd4344..e139b25269 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -167,8 +168,7 @@ class AdditionalPropertiesValidator(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.pyi
index b992cdd524..aa4a7355b2 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_validator.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -165,8 +166,7 @@ class AdditionalPropertiesValidator(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py
index d54514f3ae..2a0bbc3031 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,9 +43,8 @@ class AdditionalPropertiesWithArrayOfEnums(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['EnumClass']:
+ @staticmethod
+ def items() -> typing.Type['EnumClass']:
return EnumClass
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.pyi
index d54514f3ae..2a0bbc3031 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/additional_properties_with_array_of_enums.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -42,9 +43,8 @@ class AdditionalPropertiesWithArrayOfEnums(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['EnumClass']:
+ @staticmethod
+ def items() -> typing.Type['EnumClass']:
return EnumClass
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py
index 16f5475240..64fb96cfb9 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.pyi
index 16f5475240..64fb96cfb9 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/address.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py
index 54684b754c..06d7246fa3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +38,8 @@ class Animal(
"className",
}
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'Cat': Cat,
@@ -58,29 +58,29 @@ class Animal(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", "color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", "color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi
index 54684b754c..06d7246fa3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +38,8 @@ class Animal(
"className",
}
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'Cat': Cat,
@@ -58,29 +58,29 @@ class Animal(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", "color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", "color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py
index 32ba10fdab..082a4988ce 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class AnimalFarm(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Animal']:
+ @staticmethod
+ def items() -> typing.Type['Animal']:
return Animal
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.pyi
index 32ba10fdab..082a4988ce 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/animal_farm.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class AnimalFarm(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Animal']:
+ @staticmethod
+ def items() -> typing.Type['Animal']:
return Animal
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.py
index 9d9640674b..7bccdfa416 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -264,71 +265,71 @@ class AnyTypeAndFormat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date-time"]) -> MetaOapg.properties.date_time: ...
+ def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.pyi
index 9d9640674b..7bccdfa416 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_and_format.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -264,71 +265,71 @@ class AnyTypeAndFormat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date-time"]) -> MetaOapg.properties.date_time: ...
+ def __getitem__(self, name: typing_extensions.Literal["date-time"]) -> MetaOapg.properties.date_time: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date-time"]) -> typing.Union[MetaOapg.properties.date_time, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> typing.Union[MetaOapg.properties.number, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "date", "date-time", "number", "binary", "int32", "int64", "double", "float", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py
index 8595658ff9..993207a77f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.pyi
index 8595658ff9..993207a77f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/any_type_not_string.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py
index 3377076f6f..236e29d4e7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -45,35 +46,35 @@ class ApiResponse(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["code"]) -> MetaOapg.properties.code: ...
+ def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["type"]) -> MetaOapg.properties.type: ...
+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["message"]) -> MetaOapg.properties.message: ...
+ def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["code", "type", "message", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["code", "type", "message", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi
index 3377076f6f..236e29d4e7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/api_response.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -45,35 +46,35 @@ class ApiResponse(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["code"]) -> MetaOapg.properties.code: ...
+ def __getitem__(self, name: typing_extensions.Literal["code"]) -> MetaOapg.properties.code: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["type"]) -> MetaOapg.properties.type: ...
+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["message"]) -> MetaOapg.properties.message: ...
+ def __getitem__(self, name: typing_extensions.Literal["message"]) -> MetaOapg.properties.message: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["code", "type", "message", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["code"]) -> typing.Union[MetaOapg.properties.code, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["code", "type", "message", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["code", "type", "message", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py
index 648bd127ae..638edc274d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -75,29 +76,29 @@ class Apple(
cultivar: MetaOapg.properties.cultivar
@typing.overload
- def __getitem__(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["origin"]) -> MetaOapg.properties.origin: ...
+ def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["cultivar", "origin", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["cultivar", "origin", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi
index 497e50744e..95bd5e3a90 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -62,29 +63,29 @@ class Apple(
cultivar: MetaOapg.properties.cultivar
@typing.overload
- def __getitem__(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["origin"]) -> MetaOapg.properties.origin: ...
+ def __getitem__(self, name: typing_extensions.Literal["origin"]) -> MetaOapg.properties.origin: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["cultivar", "origin", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["cultivar", "origin", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar", "origin", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py
index d5e04fef1e..03d83c22cf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class AppleReq(
cultivar: MetaOapg.properties.cultivar
@typing.overload
- def __getitem__(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["mealy"]) -> MetaOapg.properties.mealy: ...
+ def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ...
- def __getitem__(self, name: typing.Union[typing.Literal["cultivar"], typing.Literal["mealy"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["cultivar"], typing.Literal["mealy"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.pyi
index d5e04fef1e..03d83c22cf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/apple_req.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class AppleReq(
cultivar: MetaOapg.properties.cultivar
@typing.overload
- def __getitem__(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def __getitem__(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["mealy"]) -> MetaOapg.properties.mealy: ...
+ def __getitem__(self, name: typing_extensions.Literal["mealy"]) -> MetaOapg.properties.mealy: ...
- def __getitem__(self, name: typing.Union[typing.Literal["cultivar"], typing.Literal["mealy"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cultivar"]) -> MetaOapg.properties.cultivar: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["mealy"]) -> typing.Union[MetaOapg.properties.mealy, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["cultivar"], typing.Literal["mealy"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["cultivar"], typing_extensions.Literal["mealy"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py
index 8f499a27dd..19b1c0e1a6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.pyi
index 8f499a27dd..19b1c0e1a6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_holding_any_type.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py
index 7c61f8f883..5237741d83 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -85,23 +86,23 @@ class ArrayOfArrayOfNumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["ArrayArrayNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["ArrayArrayNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi
index 7c61f8f883..5237741d83 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_array_of_number_only.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -85,23 +86,23 @@ class ArrayOfArrayOfNumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> MetaOapg.properties.ArrayArrayNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["ArrayArrayNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["ArrayArrayNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayArrayNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py
index c1bef141be..d7eb9d4838 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class ArrayOfEnums(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['StringEnum']:
+ @staticmethod
+ def items() -> typing.Type['StringEnum']:
return StringEnum
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.pyi
index c1bef141be..d7eb9d4838 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_enums.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class ArrayOfEnums(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['StringEnum']:
+ @staticmethod
+ def items() -> typing.Type['StringEnum']:
return StringEnum
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py
index 6a6e7207ce..9c5a9b55d2 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -63,23 +64,23 @@ class ArrayOfNumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["ArrayNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["ArrayNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi
index 6a6e7207ce..9c5a9b55d2 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_of_number_only.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -63,23 +64,23 @@ class ArrayOfNumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["ArrayNumber"]) -> MetaOapg.properties.ArrayNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["ArrayNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["ArrayNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["ArrayNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py
index 3825e2b850..d53b0df62d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -120,9 +121,8 @@ class ArrayTest(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['ReadOnlyFirst']:
+ @staticmethod
+ def items() -> typing.Type['ReadOnlyFirst']:
return ReadOnlyFirst
def __new__(
@@ -159,35 +159,35 @@ class ArrayTest(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi
index 3825e2b850..d53b0df62d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -120,9 +121,8 @@ class ArrayTest(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['ReadOnlyFirst']:
+ @staticmethod
+ def items() -> typing.Type['ReadOnlyFirst']:
return ReadOnlyFirst
def __new__(
@@ -159,35 +159,35 @@ class ArrayTest(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_of_string"]) -> MetaOapg.properties.array_of_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_array_of_integer"]) -> MetaOapg.properties.array_array_of_integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_array_of_model"]) -> MetaOapg.properties.array_array_of_model: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_of_string"]) -> typing.Union[MetaOapg.properties.array_of_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_integer"]) -> typing.Union[MetaOapg.properties.array_array_of_integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["array_of_string", "array_array_of_integer", "array_array_of_model", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py
index 5e563ce12e..bfa5fe4afc 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.pyi
index 240b151923..2f1d07e328 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/array_with_validations_in_items.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py
index 87ae6a8c08..b3d1c7d792 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,23 +47,23 @@ class Banana(
lengthCm: MetaOapg.properties.lengthCm
@typing.overload
- def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["lengthCm", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["lengthCm", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi
index 87ae6a8c08..b3d1c7d792 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,23 +47,23 @@ class Banana(
lengthCm: MetaOapg.properties.lengthCm
@typing.overload
- def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["lengthCm", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["lengthCm", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py
index 48fde4d494..1fdfa7d34a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class BananaReq(
lengthCm: MetaOapg.properties.lengthCm
@typing.overload
- def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["sweet"]) -> MetaOapg.properties.sweet: ...
+ def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ...
- def __getitem__(self, name: typing.Union[typing.Literal["lengthCm"], typing.Literal["sweet"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["lengthCm"], typing.Literal["sweet"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.pyi
index 48fde4d494..1fdfa7d34a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/banana_req.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class BananaReq(
lengthCm: MetaOapg.properties.lengthCm
@typing.overload
- def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def __getitem__(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["sweet"]) -> MetaOapg.properties.sweet: ...
+ def __getitem__(self, name: typing_extensions.Literal["sweet"]) -> MetaOapg.properties.sweet: ...
- def __getitem__(self, name: typing.Union[typing.Literal["lengthCm"], typing.Literal["sweet"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["sweet"]) -> typing.Union[MetaOapg.properties.sweet, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["lengthCm"], typing.Literal["sweet"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["lengthCm"], typing_extensions.Literal["sweet"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py
index 2a9bc73c0c..d100ad83c5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.pyi
index 2a9bc73c0c..d100ad83c5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/bar.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py
index ea00a644d5..761184a89c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class BasquePig(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def BASQUE_PIG(cls):
return cls("BasquePig")
__annotations__ = {
@@ -60,23 +60,23 @@ class BasquePig(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi
index ea00a644d5..761184a89c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/basque_pig.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class BasquePig(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def BASQUE_PIG(cls):
return cls("BasquePig")
__annotations__ = {
@@ -60,23 +60,23 @@ class BasquePig(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py
index dba78e0ef6..6f667d4c0b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.pyi
index dba78e0ef6..6f667d4c0b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py
index 3f05039831..7f98942e76 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class BooleanEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def TRUE(cls):
return cls(schemas.BoolClass.TRUE)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.pyi
index 3f05039831..7f98942e76 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/boolean_enum.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class BooleanEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def TRUE(cls):
return cls(schemas.BoolClass.TRUE)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py
index 830138af4a..3dc195865d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,53 +52,53 @@ class Capitalization(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ...
+ def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ...
+ def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ...
+ def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ...
+ def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ...
+ def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ...
+ def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi
index 830138af4a..3dc195865d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/capitalization.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,53 +52,53 @@ class Capitalization(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ...
+ def __getitem__(self, name: typing_extensions.Literal["smallCamel"]) -> MetaOapg.properties.smallCamel: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ...
+ def __getitem__(self, name: typing_extensions.Literal["CapitalCamel"]) -> MetaOapg.properties.CapitalCamel: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ...
+ def __getitem__(self, name: typing_extensions.Literal["small_Snake"]) -> MetaOapg.properties.small_Snake: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ...
+ def __getitem__(self, name: typing_extensions.Literal["Capital_Snake"]) -> MetaOapg.properties.Capital_Snake: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ...
+ def __getitem__(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> MetaOapg.properties.SCA_ETH_Flow_Points: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ...
+ def __getitem__(self, name: typing_extensions.Literal["ATT_NAME"]) -> MetaOapg.properties.ATT_NAME: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["smallCamel"]) -> typing.Union[MetaOapg.properties.smallCamel, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["CapitalCamel"]) -> typing.Union[MetaOapg.properties.CapitalCamel, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["small_Snake"]) -> typing.Union[MetaOapg.properties.small_Snake, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["Capital_Snake"]) -> typing.Union[MetaOapg.properties.Capital_Snake, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["SCA_ETH_Flow_Points"]) -> typing.Union[MetaOapg.properties.SCA_ETH_Flow_Points, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["smallCamel", "CapitalCamel", "small_Snake", "Capital_Snake", "SCA_ETH_Flow_Points", "ATT_NAME", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py
index 3c714db7af..da07def367 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class Cat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["declawed"]) -> MetaOapg.properties.declawed: ...
+ def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["declawed", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["declawed", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class Cat(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi
index 3c714db7af..da07def367 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/cat.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class Cat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["declawed"]) -> MetaOapg.properties.declawed: ...
+ def __getitem__(self, name: typing_extensions.Literal["declawed"]) -> MetaOapg.properties.declawed: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["declawed", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["declawed", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["declawed", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class Cat(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py
index 237f5a3c60..5537a4437b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -48,29 +49,29 @@ class Category(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "id", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "id", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi
index 237f5a3c60..5537a4437b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/category.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -48,29 +49,29 @@ class Category(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "id", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "id", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "id", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py
index 05b4cbc6ef..32db862b8a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class ChildCat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class ChildCat(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi
index 05b4cbc6ef..32db862b8a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/child_cat.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class ChildCat(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class ChildCat(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py
index d753aea56a..75d36e823c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,23 +45,23 @@ class ClassModel(
@typing.overload
- def __getitem__(self, name: typing.Literal["_class"]) -> MetaOapg.properties._class: ...
+ def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["_class", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["_class", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi
index d753aea56a..75d36e823c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/class_model.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,23 +45,23 @@ class ClassModel(
@typing.overload
- def __getitem__(self, name: typing.Literal["_class"]) -> MetaOapg.properties._class: ...
+ def __getitem__(self, name: typing_extensions.Literal["_class"]) -> MetaOapg.properties._class: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["_class", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["_class", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["_class", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["_class", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py
index 19584b4c5b..4c7c16b564 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class Client(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["client"]) -> MetaOapg.properties.client: ...
+ def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["client", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["client", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi
index 19584b4c5b..4c7c16b564 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/client.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class Client(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["client"]) -> MetaOapg.properties.client: ...
+ def __getitem__(self, name: typing_extensions.Literal["client"]) -> MetaOapg.properties.client: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["client", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["client", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["client", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["client", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py
index b6c2ada4d3..4cf54c5ff0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class ComplexQuadrilateral(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def COMPLEX_QUADRILATERAL(cls):
return cls("ComplexQuadrilateral")
__annotations__ = {
@@ -63,23 +63,23 @@ class ComplexQuadrilateral(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class ComplexQuadrilateral(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi
index b6c2ada4d3..4cf54c5ff0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/complex_quadrilateral.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class ComplexQuadrilateral(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def COMPLEX_QUADRILATERAL(cls):
return cls("ComplexQuadrilateral")
__annotations__ = {
@@ -63,23 +63,23 @@ class ComplexQuadrilateral(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class ComplexQuadrilateral(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py
index 6a1bb3dc3b..9e077ff0db 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -73,8 +74,7 @@ class ComposedAnyOfDifferentTypesNoValidations(
any_of_15 = schemas.Int64Schema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.pyi
index 6a1bb3dc3b..9e077ff0db 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_any_of_different_types_no_validations.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -73,8 +74,7 @@ class ComposedAnyOfDifferentTypesNoValidations(
any_of_15 = schemas.Int64Schema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py
index 97d4d03458..41e7107528 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.pyi
index 97d4d03458..41e7107528 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_array.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py
index f2e06e68a8..4a42a8626d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedBool(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.pyi
index f2e06e68a8..4a42a8626d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_bool.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedBool(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py
index 5beea3e9cd..f442971abb 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedNone(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.pyi
index 5beea3e9cd..f442971abb 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_none.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedNone(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py
index 7415eebde9..36f53dbf21 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedNumber(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.pyi
index 7415eebde9..36f53dbf21 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_number.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedNumber(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py
index fc6b19dd8d..44171746f1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedObject(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.pyi
index fc6b19dd8d..44171746f1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_object.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedObject(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py
index 4b0b025268..790afa263e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -98,8 +99,7 @@ class ComposedOneOfDifferentTypes(
}]
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.pyi
index ed1917547c..0fd6b4dd0f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_one_of_different_types.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -86,8 +87,7 @@ class ComposedOneOfDifferentTypes(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py
index ce8df0741c..50d61de169 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedString(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.pyi
index ce8df0741c..50d61de169 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/composed_string.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,8 +38,7 @@ class ComposedString(
all_of_0 = schemas.AnyTypeSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py
index 420748d594..e1869aac84 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,12 +38,10 @@ class Currency(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def EUR(cls):
return cls("eur")
- @classmethod
- @property
+ @schemas.classproperty
def USD(cls):
return cls("usd")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.pyi
index 420748d594..e1869aac84 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/currency.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,12 +38,10 @@ class Currency(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def EUR(cls):
return cls("eur")
- @classmethod
- @property
+ @schemas.classproperty
def USD(cls):
return cls("usd")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py
index a377ff111a..119950e031 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class DanishPig(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def DANISH_PIG(cls):
return cls("DanishPig")
__annotations__ = {
@@ -60,23 +60,23 @@ class DanishPig(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi
index a377ff111a..119950e031 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/danish_pig.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class DanishPig(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def DANISH_PIG(cls):
return cls("DanishPig")
__annotations__ = {
@@ -60,23 +60,23 @@ class DanishPig(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py
index 752f43e627..1a616cac27 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.pyi
index 752f43e627..1a616cac27 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py
index eb1680f6d6..8d9eaf992b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.pyi
index f82f7a69bc..2898b61900 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_time_with_validations.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py
index a89c8a4c94..45d5ba9945 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.pyi
index a434304bc0..52770358d1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/date_with_validations.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py
index 11f8483f33..8e3b63175a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.pyi
index 11f8483f33..8e3b63175a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/decimal_payload.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py
index 2d3c45ee8e..a8dd43038d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class Dog(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["breed"]) -> MetaOapg.properties.breed: ...
+ def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["breed", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["breed", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class Dog(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi
index 2d3c45ee8e..a8dd43038d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,23 +50,23 @@ class Dog(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["breed"]) -> MetaOapg.properties.breed: ...
+ def __getitem__(self, name: typing_extensions.Literal["breed"]) -> MetaOapg.properties.breed: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["breed", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["breed", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["breed", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["breed", ], str]):
return super().get_item_oapg(name)
@@ -85,8 +86,7 @@ class Dog(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py
index 1cc2c10c86..9c7b54ae9c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,19 +37,16 @@ class Drawing(
class properties:
- @classmethod
- @property
- def mainShape(cls) -> typing.Type['Shape']:
+ @staticmethod
+ def mainShape() -> typing.Type['Shape']:
return Shape
- @classmethod
- @property
- def shapeOrNull(cls) -> typing.Type['ShapeOrNull']:
+ @staticmethod
+ def shapeOrNull() -> typing.Type['ShapeOrNull']:
return ShapeOrNull
- @classmethod
- @property
- def nullableShape(cls) -> typing.Type['NullableShape']:
+ @staticmethod
+ def nullableShape() -> typing.Type['NullableShape']:
return NullableShape
@@ -59,9 +57,8 @@ class Drawing(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Shape']:
+ @staticmethod
+ def items() -> typing.Type['Shape']:
return Shape
def __new__(
@@ -84,46 +81,45 @@ class Drawing(
"shapes": shapes,
}
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['Fruit']:
+ @staticmethod
+ def additional_properties() -> typing.Type['Fruit']:
return Fruit
@typing.overload
- def __getitem__(self, name: typing.Literal["mainShape"]) -> 'Shape': ...
+ def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeOrNull"]) -> 'ShapeOrNull': ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["nullableShape"]) -> 'NullableShape': ...
+ def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shapes"]) -> MetaOapg.properties.shapes: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ...
@typing.overload
def __getitem__(self, name: str) -> 'Fruit': ...
- def __getitem__(self, name: typing.Union[typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi
index 1cc2c10c86..9c7b54ae9c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/drawing.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,19 +37,16 @@ class Drawing(
class properties:
- @classmethod
- @property
- def mainShape(cls) -> typing.Type['Shape']:
+ @staticmethod
+ def mainShape() -> typing.Type['Shape']:
return Shape
- @classmethod
- @property
- def shapeOrNull(cls) -> typing.Type['ShapeOrNull']:
+ @staticmethod
+ def shapeOrNull() -> typing.Type['ShapeOrNull']:
return ShapeOrNull
- @classmethod
- @property
- def nullableShape(cls) -> typing.Type['NullableShape']:
+ @staticmethod
+ def nullableShape() -> typing.Type['NullableShape']:
return NullableShape
@@ -59,9 +57,8 @@ class Drawing(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Shape']:
+ @staticmethod
+ def items() -> typing.Type['Shape']:
return Shape
def __new__(
@@ -84,46 +81,45 @@ class Drawing(
"shapes": shapes,
}
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['Fruit']:
+ @staticmethod
+ def additional_properties() -> typing.Type['Fruit']:
return Fruit
@typing.overload
- def __getitem__(self, name: typing.Literal["mainShape"]) -> 'Shape': ...
+ def __getitem__(self, name: typing_extensions.Literal["mainShape"]) -> 'Shape': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeOrNull"]) -> 'ShapeOrNull': ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeOrNull"]) -> 'ShapeOrNull': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["nullableShape"]) -> 'NullableShape': ...
+ def __getitem__(self, name: typing_extensions.Literal["nullableShape"]) -> 'NullableShape': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shapes"]) -> MetaOapg.properties.shapes: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapes"]) -> MetaOapg.properties.shapes: ...
@typing.overload
def __getitem__(self, name: str) -> 'Fruit': ...
- def __getitem__(self, name: typing.Union[typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["mainShape"]) -> typing.Union['Shape', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeOrNull"]) -> typing.Union['ShapeOrNull', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["nullableShape"]) -> typing.Union['NullableShape', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["mainShape"], typing_extensions.Literal["shapeOrNull"], typing_extensions.Literal["nullableShape"], typing_extensions.Literal["shapes"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py
index 9e325438e8..0c2e685bca 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -47,13 +48,11 @@ class EnumArrays(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN_EQUALS(cls):
return cls(">=")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -76,13 +75,11 @@ class EnumArrays(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def FISH(cls):
return cls("fish")
- @classmethod
- @property
+ @schemas.classproperty
def CRAB(cls):
return cls("crab")
@@ -105,29 +102,29 @@ class EnumArrays(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ...
+ def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["just_symbol", "array_enum", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["just_symbol", "array_enum", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi
index 9e325438e8..0c2e685bca 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_arrays.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -47,13 +48,11 @@ class EnumArrays(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN_EQUALS(cls):
return cls(">=")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -76,13 +75,11 @@ class EnumArrays(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def FISH(cls):
return cls("fish")
- @classmethod
- @property
+ @schemas.classproperty
def CRAB(cls):
return cls("crab")
@@ -105,29 +102,29 @@ class EnumArrays(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ...
+ def __getitem__(self, name: typing_extensions.Literal["just_symbol"]) -> MetaOapg.properties.just_symbol: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_enum"]) -> MetaOapg.properties.array_enum: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["just_symbol", "array_enum", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["just_symbol"]) -> typing.Union[MetaOapg.properties.just_symbol, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["just_symbol", "array_enum", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["just_symbol", "array_enum", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py
index eb643e3937..8addfe2892 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -40,27 +41,22 @@ class EnumClass(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
- @classmethod
- @property
+ @schemas.classproperty
def COUNT_1M(cls):
return cls("COUNT_1M")
- @classmethod
- @property
+ @schemas.classproperty
def COUNT_50M(cls):
return cls("COUNT_50M")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.pyi
index eb643e3937..8addfe2892 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_class.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -40,27 +41,22 @@ class EnumClass(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
- @classmethod
- @property
+ @schemas.classproperty
def COUNT_1M(cls):
return cls("COUNT_1M")
- @classmethod
- @property
+ @schemas.classproperty
def COUNT_50M(cls):
return cls("COUNT_50M")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py
index 154e0af15e..d96902e0d1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,18 +52,15 @@ class EnumTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
- @classmethod
- @property
+ @schemas.classproperty
def EMPTY(cls):
return cls("")
@@ -78,18 +76,15 @@ class EnumTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
- @classmethod
- @property
+ @schemas.classproperty
def EMPTY(cls):
return cls("")
@@ -104,13 +99,11 @@ class EnumTest(
schemas.Int32Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1(cls):
return cls(-1)
@@ -125,39 +118,32 @@ class EnumTest(
schemas.Float64Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1_PT_1(cls):
return cls(1.1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1_PT_2(cls):
return cls(-1.2)
- @classmethod
- @property
- def stringEnum(cls) -> typing.Type['StringEnum']:
+ @staticmethod
+ def stringEnum() -> typing.Type['StringEnum']:
return StringEnum
- @classmethod
- @property
- def IntegerEnum(cls) -> typing.Type['IntegerEnum']:
+ @staticmethod
+ def IntegerEnum() -> typing.Type['IntegerEnum']:
return IntegerEnum
- @classmethod
- @property
- def StringEnumWithDefaultValue(cls) -> typing.Type['StringEnumWithDefaultValue']:
+ @staticmethod
+ def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']:
return StringEnumWithDefaultValue
- @classmethod
- @property
- def IntegerEnumWithDefaultValue(cls) -> typing.Type['IntegerEnumWithDefaultValue']:
+ @staticmethod
+ def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']:
return IntegerEnumWithDefaultValue
- @classmethod
- @property
- def IntegerEnumOneValue(cls) -> typing.Type['IntegerEnumOneValue']:
+ @staticmethod
+ def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']:
return IntegerEnumOneValue
__annotations__ = {
"enum_string_required": enum_string_required,
@@ -174,71 +160,71 @@ class EnumTest(
enum_string_required: MetaOapg.properties.enum_string_required
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["stringEnum"]) -> 'StringEnum': ...
+ def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnum"]) -> 'IntegerEnum': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi
index 154e0af15e..d96902e0d1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/enum_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,18 +52,15 @@ class EnumTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
- @classmethod
- @property
+ @schemas.classproperty
def EMPTY(cls):
return cls("")
@@ -78,18 +76,15 @@ class EnumTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
- @classmethod
- @property
+ @schemas.classproperty
def EMPTY(cls):
return cls("")
@@ -104,13 +99,11 @@ class EnumTest(
schemas.Int32Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1(cls):
return cls(-1)
@@ -125,39 +118,32 @@ class EnumTest(
schemas.Float64Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1_PT_1(cls):
return cls(1.1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1_PT_2(cls):
return cls(-1.2)
- @classmethod
- @property
- def stringEnum(cls) -> typing.Type['StringEnum']:
+ @staticmethod
+ def stringEnum() -> typing.Type['StringEnum']:
return StringEnum
- @classmethod
- @property
- def IntegerEnum(cls) -> typing.Type['IntegerEnum']:
+ @staticmethod
+ def IntegerEnum() -> typing.Type['IntegerEnum']:
return IntegerEnum
- @classmethod
- @property
- def StringEnumWithDefaultValue(cls) -> typing.Type['StringEnumWithDefaultValue']:
+ @staticmethod
+ def StringEnumWithDefaultValue() -> typing.Type['StringEnumWithDefaultValue']:
return StringEnumWithDefaultValue
- @classmethod
- @property
- def IntegerEnumWithDefaultValue(cls) -> typing.Type['IntegerEnumWithDefaultValue']:
+ @staticmethod
+ def IntegerEnumWithDefaultValue() -> typing.Type['IntegerEnumWithDefaultValue']:
return IntegerEnumWithDefaultValue
- @classmethod
- @property
- def IntegerEnumOneValue(cls) -> typing.Type['IntegerEnumOneValue']:
+ @staticmethod
+ def IntegerEnumOneValue() -> typing.Type['IntegerEnumOneValue']:
return IntegerEnumOneValue
__annotations__ = {
"enum_string_required": enum_string_required,
@@ -174,71 +160,71 @@ class EnumTest(
enum_string_required: MetaOapg.properties.enum_string_required
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_string"]) -> MetaOapg.properties.enum_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_integer"]) -> MetaOapg.properties.enum_integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_number"]) -> MetaOapg.properties.enum_number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["stringEnum"]) -> 'StringEnum': ...
+ def __getitem__(self, name: typing_extensions.Literal["stringEnum"]) -> 'StringEnum': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnum"]) -> 'IntegerEnum': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnum"]) -> 'IntegerEnum': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> 'StringEnumWithDefaultValue': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> 'IntegerEnumWithDefaultValue': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ...
+ def __getitem__(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> 'IntegerEnumOneValue': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_string_required"]) -> MetaOapg.properties.enum_string_required: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_string"]) -> typing.Union[MetaOapg.properties.enum_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_integer"]) -> typing.Union[MetaOapg.properties.enum_integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_number"]) -> typing.Union[MetaOapg.properties.enum_number, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["stringEnum"]) -> typing.Union['StringEnum', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnum"]) -> typing.Union['IntegerEnum', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["StringEnumWithDefaultValue"]) -> typing.Union['StringEnumWithDefaultValue', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumWithDefaultValue"]) -> typing.Union['IntegerEnumWithDefaultValue', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_string_required", "enum_string", "enum_integer", "enum_number", "stringEnum", "IntegerEnum", "StringEnumWithDefaultValue", "IntegerEnumWithDefaultValue", "IntegerEnumOneValue", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py
index 27c182fe36..c184a9de47 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class EquilateralTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def EQUILATERAL_TRIANGLE(cls):
return cls("EquilateralTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class EquilateralTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class EquilateralTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi
index 27c182fe36..c184a9de47 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/equilateral_triangle.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class EquilateralTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def EQUILATERAL_TRIANGLE(cls):
return cls("EquilateralTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class EquilateralTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class EquilateralTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py
index 0e22771981..886f7a62d3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,23 +44,23 @@ class File(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ...
+ def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["sourceURI", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["sourceURI", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi
index 0e22771981..886f7a62d3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,23 +44,23 @@ class File(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ...
+ def __getitem__(self, name: typing_extensions.Literal["sourceURI"]) -> MetaOapg.properties.sourceURI: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["sourceURI", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["sourceURI", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["sourceURI", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py
index 78c3247b4e..e9320d9a0e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class FileSchemaTestClass(
class properties:
- @classmethod
- @property
- def file(cls) -> typing.Type['File']:
+ @staticmethod
+ def file() -> typing.Type['File']:
return File
@@ -49,9 +49,8 @@ class FileSchemaTestClass(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['File']:
+ @staticmethod
+ def items() -> typing.Type['File']:
return File
def __new__(
@@ -73,29 +72,29 @@ class FileSchemaTestClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> 'File': ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["files"]) -> MetaOapg.properties.files: ...
+ def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["file", "files", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> typing.Union['File', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["file", "files", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi
index 78c3247b4e..e9320d9a0e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/file_schema_test_class.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class FileSchemaTestClass(
class properties:
- @classmethod
- @property
- def file(cls) -> typing.Type['File']:
+ @staticmethod
+ def file() -> typing.Type['File']:
return File
@@ -49,9 +49,8 @@ class FileSchemaTestClass(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['File']:
+ @staticmethod
+ def items() -> typing.Type['File']:
return File
def __new__(
@@ -73,29 +72,29 @@ class FileSchemaTestClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> 'File': ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> 'File': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["files"]) -> MetaOapg.properties.files: ...
+ def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["file", "files", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> typing.Union['File', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union['File', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["file", "files", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file", "files", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py
index ffbe1dea83..ce7d00afa0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class Foo(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi
index ffbe1dea83..ce7d00afa0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/foo.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class Foo(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py
index 2de0381e3c..7f99f5b51e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -207,143 +208,143 @@ class FormatTest(
byte: MetaOapg.properties.byte
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["integer"]) -> MetaOapg.properties.integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float32"]) -> MetaOapg.properties.float32: ...
+ def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float64"]) -> MetaOapg.properties.float64: ...
+ def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ...
+ def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> MetaOapg.properties.string: ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi
index 54c03cc66e..dc49d47fd8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/format_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -159,143 +160,143 @@ class FormatTest(
byte: MetaOapg.properties.byte
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["integer"]) -> MetaOapg.properties.integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32withValidations"]) -> MetaOapg.properties.int32withValidations: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float32"]) -> MetaOapg.properties.float32: ...
+ def __getitem__(self, name: typing_extensions.Literal["float32"]) -> MetaOapg.properties.float32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float64"]) -> MetaOapg.properties.float64: ...
+ def __getitem__(self, name: typing_extensions.Literal["float64"]) -> MetaOapg.properties.float64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ...
+ def __getitem__(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> MetaOapg.properties.arrayWithUniqueItems: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> MetaOapg.properties.string: ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuidNoExample"]) -> MetaOapg.properties.uuidNoExample: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits"]) -> MetaOapg.properties.pattern_with_digits: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> MetaOapg.properties.pattern_with_digits_and_delimiter: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["noneProp"]) -> MetaOapg.properties.noneProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32withValidations"]) -> typing.Union[MetaOapg.properties.int32withValidations, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float32"]) -> typing.Union[MetaOapg.properties.float32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> typing.Union[MetaOapg.properties.double, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float64"]) -> typing.Union[MetaOapg.properties.float64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["arrayWithUniqueItems"]) -> typing.Union[MetaOapg.properties.arrayWithUniqueItems, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuidNoExample"]) -> typing.Union[MetaOapg.properties.uuidNoExample, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits"]) -> typing.Union[MetaOapg.properties.pattern_with_digits, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_with_digits_and_delimiter"]) -> typing.Union[MetaOapg.properties.pattern_with_digits_and_delimiter, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["noneProp"]) -> typing.Union[MetaOapg.properties.noneProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["number", "byte", "date", "password", "integer", "int32", "int32withValidations", "int64", "float", "float32", "double", "float64", "arrayWithUniqueItems", "string", "binary", "dateTime", "uuid", "uuidNoExample", "pattern_with_digits", "pattern_with_digits_and_delimiter", "noneProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py
index cc6a567af2..056b33f22f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,8 +42,7 @@ class Fruit(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -58,23 +58,23 @@ class Fruit(
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi
index cc6a567af2..056b33f22f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,8 +42,7 @@ class Fruit(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -58,23 +58,23 @@ class Fruit(
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py
index 6e7e742450..18879cd45c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,8 +37,7 @@ class FruitReq(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.pyi
index 6e7e742450..18879cd45c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/fruit_req.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,8 +37,7 @@ class FruitReq(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py
index 66092619b0..5646a4704e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,8 +42,7 @@ class GmFruit(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -58,23 +58,23 @@ class GmFruit(
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi
index 66092619b0..5646a4704e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/gm_fruit.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,8 +42,7 @@ class GmFruit(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def any_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -58,23 +58,23 @@ class GmFruit(
@typing.overload
- def __getitem__(self, name: typing.Literal["color"]) -> MetaOapg.properties.color: ...
+ def __getitem__(self, name: typing_extensions.Literal["color"]) -> MetaOapg.properties.color: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["color", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["color", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["color", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py
index cb55a7f0de..838d96a814 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +38,8 @@ class GrandparentAnimal(
"pet_type",
}
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'pet_type': {
'ChildCat': ChildCat,
@@ -56,23 +56,23 @@ class GrandparentAnimal(
pet_type: MetaOapg.properties.pet_type
@typing.overload
- def __getitem__(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
+ def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["pet_type", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["pet_type", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi
index cb55a7f0de..838d96a814 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/grandparent_animal.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +38,8 @@ class GrandparentAnimal(
"pet_type",
}
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'pet_type': {
'ChildCat': ChildCat,
@@ -56,23 +56,23 @@ class GrandparentAnimal(
pet_type: MetaOapg.properties.pet_type
@typing.overload
- def __getitem__(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
+ def __getitem__(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["pet_type", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pet_type"]) -> MetaOapg.properties.pet_type: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["pet_type", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["pet_type", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py
index 9307f505f3..f56f17aad8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class HasOnlyReadOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi
index 9307f505f3..f56f17aad8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/has_only_read_only.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class HasOnlyReadOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
+ def __getitem__(self, name: typing_extensions.Literal["foo"]) -> MetaOapg.properties.foo: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "foo", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "foo", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py
index 1b21b55a65..840a5ad96f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -62,23 +63,23 @@ class HealthCheckResult(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ...
+ def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["NullableMessage", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["NullableMessage", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi
index 1b21b55a65..840a5ad96f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/health_check_result.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -62,23 +63,23 @@ class HealthCheckResult(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ...
+ def __getitem__(self, name: typing_extensions.Literal["NullableMessage"]) -> MetaOapg.properties.NullableMessage: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["NullableMessage", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["NullableMessage"]) -> typing.Union[MetaOapg.properties.NullableMessage, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["NullableMessage", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["NullableMessage", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py
index 5d41b025ac..fa53ad2959 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.pyi
index 5d41b025ac..fa53ad2959 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py
index 6264a49089..6e931d02fd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnumBig(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_10(cls):
return cls(10)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_11(cls):
return cls(11)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_12(cls):
return cls(12)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.pyi
index 6264a49089..6e931d02fd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_big.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnumBig(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_10(cls):
return cls(10)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_11(cls):
return cls(11)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_12(cls):
return cls(12)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py
index 3d7db09ce4..29e4afe941 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class IntegerEnumOneValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.pyi
index 3d7db09ce4..29e4afe941 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_one_value.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,7 +37,6 @@ class IntegerEnumOneValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py
index da4f1ac9ef..11f2d028be 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnumWithDefaultValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.pyi
index da4f1ac9ef..11f2d028be 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_enum_with_default_value.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class IntegerEnumWithDefaultValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_0(cls):
return cls(0)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_2(cls):
return cls(2)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
index 320a61055e..c39215af60 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.pyi
index b1a4922d08..7e0c4ee337 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_max10.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py
index e6dcb3af72..7430ad6f5e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.pyi
index 3bae631106..73d4df6c23 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/integer_min15.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py
index 15efebd452..408ba30ae8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class IsoscelesTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ISOSCELES_TRIANGLE(cls):
return cls("IsoscelesTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class IsoscelesTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class IsoscelesTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi
index 15efebd452..408ba30ae8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/isosceles_triangle.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class IsoscelesTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ISOSCELES_TRIANGLE(cls):
return cls("IsoscelesTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class IsoscelesTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class IsoscelesTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.py
index 3ef832be70..223b0c5512 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,8 +44,7 @@ class JSONPatchRequest(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.pyi
index 3ef832be70..223b0c5512 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,8 +44,7 @@ class JSONPatchRequest(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.py
index 76d6409b05..d013295fd9 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,18 +56,15 @@ class JSONPatchRequestAddReplaceTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ADD(cls):
return cls("add")
- @classmethod
- @property
+ @schemas.classproperty
def REPLACE(cls):
return cls("replace")
- @classmethod
- @property
+ @schemas.classproperty
def TEST(cls):
return cls("test")
__annotations__ = {
@@ -81,28 +79,28 @@ class JSONPatchRequestAddReplaceTest(
value: MetaOapg.properties.value
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["value"]) -> MetaOapg.properties.value: ...
+ def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["value"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["value"]) -> MetaOapg.properties.value: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["value"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.pyi
index 76d6409b05..d013295fd9 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_add_replace_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -55,18 +56,15 @@ class JSONPatchRequestAddReplaceTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ADD(cls):
return cls("add")
- @classmethod
- @property
+ @schemas.classproperty
def REPLACE(cls):
return cls("replace")
- @classmethod
- @property
+ @schemas.classproperty
def TEST(cls):
return cls("test")
__annotations__ = {
@@ -81,28 +79,28 @@ class JSONPatchRequestAddReplaceTest(
value: MetaOapg.properties.value
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["value"]) -> MetaOapg.properties.value: ...
+ def __getitem__(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["value"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["value"]) -> MetaOapg.properties.value: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["value"]) -> MetaOapg.properties.value: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["value"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["value"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.py
index ca8fa160d3..7ff6a7bcfd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,13 +55,11 @@ class JSONPatchRequestMoveCopy(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def MOVE(cls):
return cls("move")
- @classmethod
- @property
+ @schemas.classproperty
def COPY(cls):
return cls("copy")
__annotations__ = {
@@ -74,28 +73,28 @@ class JSONPatchRequestMoveCopy(
path: MetaOapg.properties.path
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["from"]) -> MetaOapg.properties._from: ...
+ def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["from"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["from"]) -> MetaOapg.properties._from: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["from"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.pyi
index ca8fa160d3..7ff6a7bcfd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_move_copy.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,13 +55,11 @@ class JSONPatchRequestMoveCopy(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def MOVE(cls):
return cls("move")
- @classmethod
- @property
+ @schemas.classproperty
def COPY(cls):
return cls("copy")
__annotations__ = {
@@ -74,28 +73,28 @@ class JSONPatchRequestMoveCopy(
path: MetaOapg.properties.path
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["from"]) -> MetaOapg.properties._from: ...
+ def __getitem__(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["from"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["from"]) -> MetaOapg.properties._from: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["from"]) -> MetaOapg.properties._from: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], typing.Literal["from"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], typing_extensions.Literal["from"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.py
index 9ab2b78ae1..ebe64d5ee0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,8 +52,7 @@ class JSONPatchRequestRemove(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def REMOVE(cls):
return cls("remove")
__annotations__ = {
@@ -65,22 +65,22 @@ class JSONPatchRequestRemove(
path: MetaOapg.properties.path
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.pyi
index 9ab2b78ae1..ebe64d5ee0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/json_patch_request_remove.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,8 +52,7 @@ class JSONPatchRequestRemove(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def REMOVE(cls):
return cls("remove")
__annotations__ = {
@@ -65,22 +65,22 @@ class JSONPatchRequestRemove(
path: MetaOapg.properties.path
@typing.overload
- def __getitem__(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def __getitem__(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def __getitem__(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
- def __getitem__(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["op"]) -> MetaOapg.properties.op: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["op"]) -> MetaOapg.properties.op: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["path"]) -> MetaOapg.properties.path: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["path"]) -> MetaOapg.properties.path: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["op"], typing.Literal["path"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["op"], typing_extensions.Literal["path"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py
index ea5638cf0f..e90d419cc6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Mammal(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'Pig': Pig,
@@ -46,8 +46,7 @@ class Mammal(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.pyi
index ea5638cf0f..e90d419cc6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mammal.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Mammal(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'Pig': Pig,
@@ -46,8 +46,7 @@ class Mammal(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py
index 140faaa42f..c5d70ab807 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -112,13 +113,11 @@ class MapTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
@@ -171,9 +170,8 @@ class MapTest(
**kwargs,
)
- @classmethod
- @property
- def indirect_map(cls) -> typing.Type['StringBooleanMap']:
+ @staticmethod
+ def indirect_map() -> typing.Type['StringBooleanMap']:
return StringBooleanMap
__annotations__ = {
"map_map_of_string": map_map_of_string,
@@ -183,41 +181,41 @@ class MapTest(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ...
+ def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["indirect_map"]) -> 'StringBooleanMap': ...
+ def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi
index 140faaa42f..c5d70ab807 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/map_test.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -112,13 +113,11 @@ class MapTest(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def UPPER(cls):
return cls("UPPER")
- @classmethod
- @property
+ @schemas.classproperty
def LOWER(cls):
return cls("lower")
@@ -171,9 +170,8 @@ class MapTest(
**kwargs,
)
- @classmethod
- @property
- def indirect_map(cls) -> typing.Type['StringBooleanMap']:
+ @staticmethod
+ def indirect_map() -> typing.Type['StringBooleanMap']:
return StringBooleanMap
__annotations__ = {
"map_map_of_string": map_map_of_string,
@@ -183,41 +181,41 @@ class MapTest(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_map_of_string"]) -> MetaOapg.properties.map_map_of_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["map_of_enum_string"]) -> MetaOapg.properties.map_of_enum_string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ...
+ def __getitem__(self, name: typing_extensions.Literal["direct_map"]) -> MetaOapg.properties.direct_map: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["indirect_map"]) -> 'StringBooleanMap': ...
+ def __getitem__(self, name: typing_extensions.Literal["indirect_map"]) -> 'StringBooleanMap': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_map_of_string"]) -> typing.Union[MetaOapg.properties.map_map_of_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map_of_enum_string"]) -> typing.Union[MetaOapg.properties.map_of_enum_string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["direct_map"]) -> typing.Union[MetaOapg.properties.direct_map, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["indirect_map"]) -> typing.Union['StringBooleanMap', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["map_map_of_string", "map_of_enum_string", "direct_map", "indirect_map", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py
index e5bea736b3..b146d15b6a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,9 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(
class MetaOapg:
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['Animal']:
+ @staticmethod
+ def additional_properties() -> typing.Type['Animal']:
return Animal
def __getitem__(self, name: typing.Union[str, ]) -> 'Animal':
@@ -77,35 +77,35 @@ class MixedPropertiesAndAdditionalPropertiesClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map"]) -> MetaOapg.properties.map: ...
+ def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["uuid", "dateTime", "map", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["uuid", "dateTime", "map", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi
index e5bea736b3..b146d15b6a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/mixed_properties_and_additional_properties_class.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,9 +47,8 @@ class MixedPropertiesAndAdditionalPropertiesClass(
class MetaOapg:
- @classmethod
- @property
- def additional_properties(cls) -> typing.Type['Animal']:
+ @staticmethod
+ def additional_properties() -> typing.Type['Animal']:
return Animal
def __getitem__(self, name: typing.Union[str, ]) -> 'Animal':
@@ -77,35 +77,35 @@ class MixedPropertiesAndAdditionalPropertiesClass(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
+ def __getitem__(self, name: typing_extensions.Literal["uuid"]) -> MetaOapg.properties.uuid: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["map"]) -> MetaOapg.properties.map: ...
+ def __getitem__(self, name: typing_extensions.Literal["map"]) -> MetaOapg.properties.map: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["uuid", "dateTime", "map", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["uuid"]) -> typing.Union[MetaOapg.properties.uuid, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["map"]) -> typing.Union[MetaOapg.properties.map, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["uuid", "dateTime", "map", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["uuid", "dateTime", "map", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py
index 6cba7199b2..7cdc34c576 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,29 +47,29 @@ class Model200Response(
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["class"]) -> MetaOapg.properties._class: ...
+ def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "class", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "class", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi
index 6cba7199b2..7cdc34c576 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model200_response.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,29 +47,29 @@ class Model200Response(
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["class"]) -> MetaOapg.properties._class: ...
+ def __getitem__(self, name: typing_extensions.Literal["class"]) -> MetaOapg.properties._class: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "class", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "class", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "class", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py
index ff67e26ab9..1549dc1120 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,23 +45,23 @@ class ModelReturn(
@typing.overload
- def __getitem__(self, name: typing.Literal["return"]) -> MetaOapg.properties._return: ...
+ def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["return", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["return", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi
index ff67e26ab9..1549dc1120 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/model_return.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,23 +45,23 @@ class ModelReturn(
@typing.overload
- def __getitem__(self, name: typing.Literal["return"]) -> MetaOapg.properties._return: ...
+ def __getitem__(self, name: typing_extensions.Literal["return"]) -> MetaOapg.properties._return: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["return", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["return", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["return"]) -> typing.Union[MetaOapg.properties._return, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["return", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["return", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py
index d17a419c70..5804737d2f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,9 +42,8 @@ class Money(
class properties:
amount = schemas.DecimalSchema
- @classmethod
- @property
- def currency(cls) -> typing.Type['Currency']:
+ @staticmethod
+ def currency() -> typing.Type['Currency']:
return Currency
__annotations__ = {
"amount": amount,
@@ -54,29 +54,29 @@ class Money(
currency: 'Currency'
@typing.overload
- def __getitem__(self, name: typing.Literal["amount"]) -> MetaOapg.properties.amount: ...
+ def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["currency"]) -> 'Currency': ...
+ def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["amount", "currency", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["amount"]) -> MetaOapg.properties.amount: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["currency"]) -> 'Currency': ...
+ def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["amount", "currency", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi
index d17a419c70..5804737d2f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/money.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,9 +42,8 @@ class Money(
class properties:
amount = schemas.DecimalSchema
- @classmethod
- @property
- def currency(cls) -> typing.Type['Currency']:
+ @staticmethod
+ def currency() -> typing.Type['Currency']:
return Currency
__annotations__ = {
"amount": amount,
@@ -54,29 +54,29 @@ class Money(
currency: 'Currency'
@typing.overload
- def __getitem__(self, name: typing.Literal["amount"]) -> MetaOapg.properties.amount: ...
+ def __getitem__(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["currency"]) -> 'Currency': ...
+ def __getitem__(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["amount", "currency", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["amount"]) -> MetaOapg.properties.amount: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["amount"]) -> MetaOapg.properties.amount: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["currency"]) -> 'Currency': ...
+ def get_item_oapg(self, name: typing_extensions.Literal["currency"]) -> 'Currency': ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["amount", "currency", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["amount", "currency", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py
index f02145ad8b..e67d017f24 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -53,35 +54,35 @@ class Name(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ...
+ def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["property"]) -> MetaOapg.properties._property: ...
+ def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "snake_case", "property", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "snake_case", "property", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi
index f02145ad8b..e67d017f24 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/name.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -53,35 +54,35 @@ class Name(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ...
+ def __getitem__(self, name: typing_extensions.Literal["snake_case"]) -> MetaOapg.properties.snake_case: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["property"]) -> MetaOapg.properties._property: ...
+ def __getitem__(self, name: typing_extensions.Literal["property"]) -> MetaOapg.properties._property: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "snake_case", "property", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["snake_case"]) -> typing.Union[MetaOapg.properties.snake_case, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["property"]) -> typing.Union[MetaOapg.properties._property, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "snake_case", "property", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "snake_case", "property", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py
index b91e823073..cacfe6027e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class NoAdditionalProperties(
id: MetaOapg.properties.id
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["petId"]) -> MetaOapg.properties.petId: ...
+ def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id"], typing.Literal["petId"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id"], typing.Literal["petId"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.pyi
index b91e823073..cacfe6027e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/no_additional_properties.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,22 +50,22 @@ class NoAdditionalProperties(
id: MetaOapg.properties.id
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["petId"]) -> MetaOapg.properties.petId: ...
+ def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id"], typing.Literal["petId"], ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id"], typing.Literal["petId"], ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id"], typing_extensions.Literal["petId"], ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py
index f535262809..0d3c13b457 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -453,88 +454,88 @@ class NullableClass(
)
@typing.overload
- def __getitem__(self, name: typing.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi
index f535262809..0d3c13b457 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_class.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -453,88 +454,88 @@ class NullableClass(
)
@typing.overload
- def __getitem__(self, name: typing.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer_prop"]) -> MetaOapg.properties.integer_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["number_prop"]) -> MetaOapg.properties.number_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["boolean_prop"]) -> MetaOapg.properties.boolean_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["string_prop"]) -> MetaOapg.properties.string_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["date_prop"]) -> MetaOapg.properties.date_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["datetime_prop"]) -> MetaOapg.properties.datetime_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_nullable_prop"]) -> MetaOapg.properties.array_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> MetaOapg.properties.array_and_items_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["array_items_nullable"]) -> MetaOapg.properties.array_items_nullable: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_nullable_prop"]) -> MetaOapg.properties.object_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> MetaOapg.properties.object_and_items_nullable_prop: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["object_items_nullable"]) -> MetaOapg.properties.object_items_nullable: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer_prop"]) -> typing.Union[MetaOapg.properties.integer_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number_prop"]) -> typing.Union[MetaOapg.properties.number_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["boolean_prop"]) -> typing.Union[MetaOapg.properties.boolean_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string_prop"]) -> typing.Union[MetaOapg.properties.string_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date_prop"]) -> typing.Union[MetaOapg.properties.date_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["datetime_prop"]) -> typing.Union[MetaOapg.properties.datetime_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.array_and_items_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["array_items_nullable"]) -> typing.Union[MetaOapg.properties.array_items_nullable, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_and_items_nullable_prop"]) -> typing.Union[MetaOapg.properties.object_and_items_nullable_prop, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["object_items_nullable"]) -> typing.Union[MetaOapg.properties.object_items_nullable, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["integer_prop"], typing.Literal["number_prop"], typing.Literal["boolean_prop"], typing.Literal["string_prop"], typing.Literal["date_prop"], typing.Literal["datetime_prop"], typing.Literal["array_nullable_prop"], typing.Literal["array_and_items_nullable_prop"], typing.Literal["array_items_nullable"], typing.Literal["object_nullable_prop"], typing.Literal["object_and_items_nullable_prop"], typing.Literal["object_items_nullable"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer_prop"], typing_extensions.Literal["number_prop"], typing_extensions.Literal["boolean_prop"], typing_extensions.Literal["string_prop"], typing_extensions.Literal["date_prop"], typing_extensions.Literal["datetime_prop"], typing_extensions.Literal["array_nullable_prop"], typing_extensions.Literal["array_and_items_nullable_prop"], typing_extensions.Literal["array_items_nullable"], typing_extensions.Literal["object_nullable_prop"], typing_extensions.Literal["object_and_items_nullable_prop"], typing_extensions.Literal["object_items_nullable"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py
index 4420c82300..e22e8d824e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,8 +39,7 @@ class NullableShape(
one_of_2 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.pyi
index 4420c82300..e22e8d824e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_shape.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,8 +39,7 @@ class NullableShape(
one_of_2 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py
index 3823a869e7..94353cf0fd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi
index 3823a869e7..94353cf0fd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/nullable_string.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py
index 22ab604f1f..7210b911ce 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.pyi
index 22ab604f1f..7210b911ce 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py
index 819c65f8f7..91aaaa507b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class NumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["JustNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["JustNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi
index 819c65f8f7..91aaaa507b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_only.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +42,23 @@ class NumberOnly(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ...
+ def __getitem__(self, name: typing_extensions.Literal["JustNumber"]) -> MetaOapg.properties.JustNumber: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["JustNumber", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["JustNumber"]) -> typing.Union[MetaOapg.properties.JustNumber, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["JustNumber", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["JustNumber", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py
index 79886743df..f8b63e3585 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.pyi
index dd5a7cbbfd..4e92a92006 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/number_with_validations.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py
index 97a74edad7..05dc6ddd56 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.pyi
index 97a74edad7..05dc6ddd56 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_interface.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py
index 5f1131e8eb..e68caff871 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,9 +39,8 @@ class ObjectModelWithRefProps(
class properties:
- @classmethod
- @property
- def myNumber(cls) -> typing.Type['NumberWithValidations']:
+ @staticmethod
+ def myNumber() -> typing.Type['NumberWithValidations']:
return NumberWithValidations
myString = schemas.StrSchema
myBoolean = schemas.BoolSchema
@@ -51,35 +51,35 @@ class ObjectModelWithRefProps(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["myNumber"]) -> 'NumberWithValidations': ...
+ def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["myString"]) -> MetaOapg.properties.myString: ...
+ def __getitem__(self, name: typing_extensions.Literal["myString"]) -> MetaOapg.properties.myString: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["myBoolean"]) -> MetaOapg.properties.myBoolean: ...
+ def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> MetaOapg.properties.myBoolean: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["myNumber", "myString", "myBoolean", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myString"]) -> typing.Union[MetaOapg.properties.myString, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union[MetaOapg.properties.myString, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["myNumber", "myString", "myBoolean", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi
index 5f1131e8eb..e68caff871 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_model_with_ref_props.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,9 +39,8 @@ class ObjectModelWithRefProps(
class properties:
- @classmethod
- @property
- def myNumber(cls) -> typing.Type['NumberWithValidations']:
+ @staticmethod
+ def myNumber() -> typing.Type['NumberWithValidations']:
return NumberWithValidations
myString = schemas.StrSchema
myBoolean = schemas.BoolSchema
@@ -51,35 +51,35 @@ class ObjectModelWithRefProps(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["myNumber"]) -> 'NumberWithValidations': ...
+ def __getitem__(self, name: typing_extensions.Literal["myNumber"]) -> 'NumberWithValidations': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["myString"]) -> MetaOapg.properties.myString: ...
+ def __getitem__(self, name: typing_extensions.Literal["myString"]) -> MetaOapg.properties.myString: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["myBoolean"]) -> MetaOapg.properties.myBoolean: ...
+ def __getitem__(self, name: typing_extensions.Literal["myBoolean"]) -> MetaOapg.properties.myBoolean: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["myNumber", "myString", "myBoolean", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myNumber"]) -> typing.Union['NumberWithValidations', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myString"]) -> typing.Union[MetaOapg.properties.myString, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myString"]) -> typing.Union[MetaOapg.properties.myString, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["myBoolean"]) -> typing.Union[MetaOapg.properties.myBoolean, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["myNumber", "myString", "myBoolean", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["myNumber", "myString", "myBoolean", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py
index 31b628c87e..068f21457b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,9 +39,8 @@ class ObjectWithDecimalProperties(
length = schemas.DecimalSchema
width = schemas.DecimalSchema
- @classmethod
- @property
- def cost(cls) -> typing.Type['Money']:
+ @staticmethod
+ def cost() -> typing.Type['Money']:
return Money
__annotations__ = {
"length": length,
@@ -49,35 +49,35 @@ class ObjectWithDecimalProperties(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["length"]) -> MetaOapg.properties.length: ...
+ def __getitem__(self, name: typing_extensions.Literal["length"]) -> MetaOapg.properties.length: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["width"]) -> MetaOapg.properties.width: ...
+ def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["cost"]) -> 'Money': ...
+ def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["length", "width", "cost", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["length"]) -> typing.Union[MetaOapg.properties.length, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union[MetaOapg.properties.length, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["length", "width", "cost", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi
index 31b628c87e..068f21457b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_decimal_properties.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,9 +39,8 @@ class ObjectWithDecimalProperties(
length = schemas.DecimalSchema
width = schemas.DecimalSchema
- @classmethod
- @property
- def cost(cls) -> typing.Type['Money']:
+ @staticmethod
+ def cost() -> typing.Type['Money']:
return Money
__annotations__ = {
"length": length,
@@ -49,35 +49,35 @@ class ObjectWithDecimalProperties(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["length"]) -> MetaOapg.properties.length: ...
+ def __getitem__(self, name: typing_extensions.Literal["length"]) -> MetaOapg.properties.length: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["width"]) -> MetaOapg.properties.width: ...
+ def __getitem__(self, name: typing_extensions.Literal["width"]) -> MetaOapg.properties.width: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["cost"]) -> 'Money': ...
+ def __getitem__(self, name: typing_extensions.Literal["cost"]) -> 'Money': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["length", "width", "cost", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["length"]) -> typing.Union[MetaOapg.properties.length, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["length"]) -> typing.Union[MetaOapg.properties.length, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["width"]) -> typing.Union[MetaOapg.properties.width, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["cost"]) -> typing.Union['Money', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["length", "width", "cost", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["length", "width", "cost", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py
index 12523ceafe..0e6aa7d4a1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,35 +52,35 @@ class ObjectWithDifficultlyNamedProps(
@typing.overload
- def __getitem__(self, name: typing.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
+ def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ...
+ def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["123Number"]) -> MetaOapg.properties._123_number: ...
+ def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["123-list", "$special[property.name]", "123Number", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["123-list", "$special[property.name]", "123Number", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi
index 12523ceafe..0e6aa7d4a1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_difficultly_named_props.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,35 +52,35 @@ class ObjectWithDifficultlyNamedProps(
@typing.overload
- def __getitem__(self, name: typing.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
+ def __getitem__(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ...
+ def __getitem__(self, name: typing_extensions.Literal["$special[property.name]"]) -> MetaOapg.properties.special_property_name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["123Number"]) -> MetaOapg.properties._123_number: ...
+ def __getitem__(self, name: typing_extensions.Literal["123Number"]) -> MetaOapg.properties._123_number: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["123-list", "$special[property.name]", "123Number", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["123-list"]) -> MetaOapg.properties._123_list: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["$special[property.name]"]) -> typing.Union[MetaOapg.properties.special_property_name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["123Number"]) -> typing.Union[MetaOapg.properties._123_number, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["123-list", "$special[property.name]", "123Number", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["123-list", "$special[property.name]", "123Number", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py
index 1c8da1560d..31e422370f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class ObjectWithInlineCompositionProperty(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -86,23 +86,23 @@ class ObjectWithInlineCompositionProperty(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi
index 31f6e1026f..294520bd23 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_inline_composition_property.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,8 +52,7 @@ class ObjectWithInlineCompositionProperty(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -83,23 +83,23 @@ class ObjectWithInlineCompositionProperty(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py
index 755a0dda7a..50c2269817 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.pyi
index a0a059188e..f45e30eed5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/object_with_validations.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py
index e6ebd27e89..817fb58ac7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -52,18 +53,15 @@ class Order(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
complete = schemas.BoolSchema
@@ -77,53 +75,53 @@ class Order(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["petId"]) -> MetaOapg.properties.petId: ...
+ def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
+ def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ...
+ def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["complete"]) -> MetaOapg.properties.complete: ...
+ def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi
index e6ebd27e89..817fb58ac7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/order.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -52,18 +53,15 @@ class Order(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
complete = schemas.BoolSchema
@@ -77,53 +75,53 @@ class Order(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["petId"]) -> MetaOapg.properties.petId: ...
+ def __getitem__(self, name: typing_extensions.Literal["petId"]) -> MetaOapg.properties.petId: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
+ def __getitem__(self, name: typing_extensions.Literal["quantity"]) -> MetaOapg.properties.quantity: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ...
+ def __getitem__(self, name: typing_extensions.Literal["shipDate"]) -> MetaOapg.properties.shipDate: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["complete"]) -> MetaOapg.properties.complete: ...
+ def __getitem__(self, name: typing_extensions.Literal["complete"]) -> MetaOapg.properties.complete: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["petId"]) -> typing.Union[MetaOapg.properties.petId, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quantity"]) -> typing.Union[MetaOapg.properties.quantity, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shipDate"]) -> typing.Union[MetaOapg.properties.shipDate, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["complete"]) -> typing.Union[MetaOapg.properties.complete, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "petId", "quantity", "shipDate", "status", "complete", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py
index 3d682113c6..178eab4e5a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,9 +36,8 @@ class ParentPet(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'pet_type': {
'ChildCat': ChildCat,
@@ -45,8 +45,7 @@ class ParentPet(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.pyi
index 3d682113c6..178eab4e5a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/parent_pet.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,9 +36,8 @@ class ParentPet(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'pet_type': {
'ChildCat': ChildCat,
@@ -45,8 +45,7 @@ class ParentPet(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py
index d7f9a873c4..cc5bd6a5a7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -67,9 +68,8 @@ class Pet(
return super().__getitem__(i)
id = schemas.Int64Schema
- @classmethod
- @property
- def category(cls) -> typing.Type['Category']:
+ @staticmethod
+ def category() -> typing.Type['Category']:
return Category
@@ -80,9 +80,8 @@ class Pet(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Tag']:
+ @staticmethod
+ def items() -> typing.Type['Tag']:
return Tag
def __new__(
@@ -111,18 +110,15 @@ class Pet(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def AVAILABLE(cls):
return cls("available")
- @classmethod
- @property
+ @schemas.classproperty
def PENDING(cls):
return cls("pending")
- @classmethod
- @property
+ @schemas.classproperty
def SOLD(cls):
return cls("sold")
__annotations__ = {
@@ -138,53 +134,53 @@ class Pet(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
+ def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["category"]) -> 'Category': ...
+ def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["tags"]) -> MetaOapg.properties.tags: ...
+ def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi
index d7f9a873c4..cc5bd6a5a7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pet.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -67,9 +68,8 @@ class Pet(
return super().__getitem__(i)
id = schemas.Int64Schema
- @classmethod
- @property
- def category(cls) -> typing.Type['Category']:
+ @staticmethod
+ def category() -> typing.Type['Category']:
return Category
@@ -80,9 +80,8 @@ class Pet(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Tag']:
+ @staticmethod
+ def items() -> typing.Type['Tag']:
return Tag
def __new__(
@@ -111,18 +110,15 @@ class Pet(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def AVAILABLE(cls):
return cls("available")
- @classmethod
- @property
+ @schemas.classproperty
def PENDING(cls):
return cls("pending")
- @classmethod
- @property
+ @schemas.classproperty
def SOLD(cls):
return cls("sold")
__annotations__ = {
@@ -138,53 +134,53 @@ class Pet(
name: MetaOapg.properties.name
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
+ def __getitem__(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["category"]) -> 'Category': ...
+ def __getitem__(self, name: typing_extensions.Literal["category"]) -> 'Category': ...
@typing.overload
- def __getitem__(self, name: typing.Literal["tags"]) -> MetaOapg.properties.tags: ...
+ def __getitem__(self, name: typing_extensions.Literal["tags"]) -> MetaOapg.properties.tags: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["photoUrls"]) -> MetaOapg.properties.photoUrls: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["category"]) -> typing.Union['Category', schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["tags"]) -> typing.Union[MetaOapg.properties.tags, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "photoUrls", "id", "category", "tags", "status", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py
index b56f76aa42..db4887c110 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Pig(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'BasquePig': BasquePig,
@@ -45,8 +45,7 @@ class Pig(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.pyi
index b56f76aa42..db4887c110 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/pig.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Pig(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'className': {
'BasquePig': BasquePig,
@@ -45,8 +45,7 @@ class Pig(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py
index 15ae3178b9..d08a18d2ee 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -39,9 +40,8 @@ class Player(
class properties:
name = schemas.StrSchema
- @classmethod
- @property
- def enemyPlayer(cls) -> typing.Type['Player']:
+ @staticmethod
+ def enemyPlayer() -> typing.Type['Player']:
return Player
__annotations__ = {
"name": name,
@@ -49,29 +49,29 @@ class Player(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enemyPlayer"]) -> 'Player': ...
+ def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "enemyPlayer", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "enemyPlayer", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi
index 15ae3178b9..d08a18d2ee 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/player.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -39,9 +40,8 @@ class Player(
class properties:
name = schemas.StrSchema
- @classmethod
- @property
- def enemyPlayer(cls) -> typing.Type['Player']:
+ @staticmethod
+ def enemyPlayer() -> typing.Type['Player']:
return Player
__annotations__ = {
"name": name,
@@ -49,29 +49,29 @@ class Player(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enemyPlayer"]) -> 'Player': ...
+ def __getitem__(self, name: typing_extensions.Literal["enemyPlayer"]) -> 'Player': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "enemyPlayer", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enemyPlayer"]) -> typing.Union['Player', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "enemyPlayer", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "enemyPlayer", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py
index a06c3c9303..6a9b08fa1f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Quadrilateral(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'quadrilateralType': {
'ComplexQuadrilateral': ComplexQuadrilateral,
@@ -45,8 +45,7 @@ class Quadrilateral(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.pyi
index a06c3c9303..6a9b08fa1f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Quadrilateral(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'quadrilateralType': {
'ComplexQuadrilateral': ComplexQuadrilateral,
@@ -45,8 +45,7 @@ class Quadrilateral(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py
index dd045cd155..a1cf375d2a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,8 +51,7 @@ class QuadrilateralInterface(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def QUADRILATERAL(cls):
return cls("Quadrilateral")
quadrilateralType = schemas.StrSchema
@@ -65,29 +65,29 @@ class QuadrilateralInterface(
quadrilateralType: MetaOapg.properties.quadrilateralType
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["shapeType", "quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["shapeType", "quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi
index dd045cd155..a1cf375d2a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/quadrilateral_interface.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,8 +51,7 @@ class QuadrilateralInterface(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def QUADRILATERAL(cls):
return cls("Quadrilateral")
quadrilateralType = schemas.StrSchema
@@ -65,29 +65,29 @@ class QuadrilateralInterface(
quadrilateralType: MetaOapg.properties.quadrilateralType
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["shapeType", "quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["shapeType", "quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "quadrilateralType", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py
index 1fe928ef01..c849de1906 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class ReadOnlyFirst(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "baz", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "baz", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi
index 1fe928ef01..c849de1906 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/read_only_first.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class ReadOnlyFirst(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
+ def __getitem__(self, name: typing_extensions.Literal["bar"]) -> MetaOapg.properties.bar: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
+ def __getitem__(self, name: typing_extensions.Literal["baz"]) -> MetaOapg.properties.baz: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["bar", "baz", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["baz"]) -> typing.Union[MetaOapg.properties.baz, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["bar", "baz", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["bar", "baz", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py
index 0305d0f9eb..e08d1d098b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class ScaleneTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def SCALENE_TRIANGLE(cls):
return cls("ScaleneTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class ScaleneTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class ScaleneTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi
index 0305d0f9eb..e08d1d098b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/scalene_triangle.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class ScaleneTriangle(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def SCALENE_TRIANGLE(cls):
return cls("ScaleneTriangle")
__annotations__ = {
@@ -63,23 +63,23 @@ class ScaleneTriangle(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["triangleType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class ScaleneTriangle(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py
index d4754b907a..bab6e983c8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Shape(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'shapeType': {
'Quadrilateral': Quadrilateral,
@@ -45,8 +45,7 @@ class Shape(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.pyi
index d4754b907a..bab6e983c8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Shape(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'shapeType': {
'Quadrilateral': Quadrilateral,
@@ -45,8 +45,7 @@ class Shape(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py
index f3a7195c0b..10342b8d03 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class ShapeOrNull(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'shapeType': {
'Quadrilateral': Quadrilateral,
@@ -48,8 +48,7 @@ class ShapeOrNull(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.pyi
index f3a7195c0b..10342b8d03 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/shape_or_null.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,9 +37,8 @@ class ShapeOrNull(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'shapeType': {
'Quadrilateral': Quadrilateral,
@@ -48,8 +48,7 @@ class ShapeOrNull(
one_of_0 = schemas.NoneSchema
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py
index 2876821d24..6490d3a572 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class SimpleQuadrilateral(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def SIMPLE_QUADRILATERAL(cls):
return cls("SimpleQuadrilateral")
__annotations__ = {
@@ -63,23 +63,23 @@ class SimpleQuadrilateral(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class SimpleQuadrilateral(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi
index 2876821d24..6490d3a572 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/simple_quadrilateral.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -54,8 +55,7 @@ class SimpleQuadrilateral(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def SIMPLE_QUADRILATERAL(cls):
return cls("SimpleQuadrilateral")
__annotations__ = {
@@ -63,23 +63,23 @@ class SimpleQuadrilateral(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
+ def __getitem__(self, name: typing_extensions.Literal["quadrilateralType"]) -> MetaOapg.properties.quadrilateralType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["quadrilateralType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["quadrilateralType", ], str]):
return super().get_item_oapg(name)
@@ -99,8 +99,7 @@ class SimpleQuadrilateral(
)
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py
index ed705b3cb9..3ce8eab0b4 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class SomeObject(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.pyi
index ed705b3cb9..3ce8eab0b4 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,8 +36,7 @@ class SomeObject(
class MetaOapg:
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py
index 824466a0f8..ca1f5c6ab8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,23 +44,23 @@ class SpecialModelName(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["a"]) -> MetaOapg.properties.a: ...
+ def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["a", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["a", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi
index 824466a0f8..ca1f5c6ab8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/special_model_name.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,23 +44,23 @@ class SpecialModelName(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["a"]) -> MetaOapg.properties.a: ...
+ def __getitem__(self, name: typing_extensions.Literal["a"]) -> MetaOapg.properties.a: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["a", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["a"]) -> typing.Union[MetaOapg.properties.a, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["a", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["a", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py
index c2365d1ed9..9e0907b426 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.pyi
index c2365d1ed9..9e0907b426 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py
index 1bc5f57499..9d4a6136b5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.pyi
index 1bc5f57499..9d4a6136b5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_boolean_map.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py
index 2667afb8f8..94ee17b59a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -45,38 +46,31 @@ class StringEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def NONE(cls):
return cls(None)
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
- @classmethod
- @property
+ @schemas.classproperty
def SINGLE_QUOTED(cls):
return cls("single quoted")
- @classmethod
- @property
+ @schemas.classproperty
def MULTIPLE_LINES(cls):
return cls("multiple\nlines")
- @classmethod
- @property
+ @schemas.classproperty
def DOUBLE_QUOTE_WITH_NEWLINE(cls):
return cls("double quote \n with newline")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi
index 2667afb8f8..94ee17b59a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -45,38 +46,31 @@ class StringEnum(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def NONE(cls):
return cls(None)
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
- @classmethod
- @property
+ @schemas.classproperty
def SINGLE_QUOTED(cls):
return cls("single quoted")
- @classmethod
- @property
+ @schemas.classproperty
def MULTIPLE_LINES(cls):
return cls("multiple\nlines")
- @classmethod
- @property
+ @schemas.classproperty
def DOUBLE_QUOTE_WITH_NEWLINE(cls):
return cls("double quote \n with newline")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py
index b04d5e7c4d..33976873a6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class StringEnumWithDefaultValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.pyi
index b04d5e7c4d..33976873a6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_enum_with_default_value.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,17 +39,14 @@ class StringEnumWithDefaultValue(
Do not edit the class manually.
"""
- @classmethod
- @property
+ @schemas.classproperty
def PLACED(cls):
return cls("placed")
- @classmethod
- @property
+ @schemas.classproperty
def APPROVED(cls):
return cls("approved")
- @classmethod
- @property
+ @schemas.classproperty
def DELIVERED(cls):
return cls("delivered")
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py
index 52a462b836..61ff6fcc31 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.pyi
index d9b5a0a434..df0be02513 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/string_with_validation.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py
index 508e837774..a0176eead3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class Tag(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "name", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "name", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi
index 508e837774..a0176eead3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/tag.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -43,29 +44,29 @@ class Tag(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "name", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "name", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "name", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py
index affe894c34..0701b6d511 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Triangle(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'triangleType': {
'EquilateralTriangle': EquilateralTriangle,
@@ -46,8 +46,7 @@ class Triangle(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.pyi
index affe894c34..0701b6d511 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -34,9 +35,8 @@ class Triangle(
class MetaOapg:
- @classmethod
- @property
- def discriminator(cls):
+ @staticmethod
+ def discriminator():
return {
'triangleType': {
'EquilateralTriangle': EquilateralTriangle,
@@ -46,8 +46,7 @@ class Triangle(
}
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def one_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
index a6465b61ad..6653983329 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,8 +51,7 @@ class TriangleInterface(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def TRIANGLE(cls):
return cls("Triangle")
triangleType = schemas.StrSchema
@@ -65,29 +65,29 @@ class TriangleInterface(
triangleType: MetaOapg.properties.triangleType
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["shapeType", "triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["shapeType", "triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi
index a6465b61ad..6653983329 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/triangle_interface.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -50,8 +51,7 @@ class TriangleInterface(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def TRIANGLE(cls):
return cls("Triangle")
triangleType = schemas.StrSchema
@@ -65,29 +65,29 @@ class TriangleInterface(
triangleType: MetaOapg.properties.triangleType
@typing.overload
- def __getitem__(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def __getitem__(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def __getitem__(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["shapeType", "triangleType", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["shapeType"]) -> MetaOapg.properties.shapeType: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["triangleType"]) -> MetaOapg.properties.triangleType: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["shapeType", "triangleType", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["shapeType", "triangleType", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py
index a72414ff28..c8beb19d82 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -108,95 +109,95 @@ class User(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["username"]) -> MetaOapg.properties.username: ...
+ def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["firstName"]) -> MetaOapg.properties.firstName: ...
+ def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["lastName"]) -> MetaOapg.properties.lastName: ...
+ def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["email"]) -> MetaOapg.properties.email: ...
+ def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["phone"]) -> MetaOapg.properties.phone: ...
+ def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ...
+ def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ...
+ def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi
index a72414ff28..c8beb19d82 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/user.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -108,95 +109,95 @@ class User(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["id"]) -> MetaOapg.properties.id: ...
+ def __getitem__(self, name: typing_extensions.Literal["id"]) -> MetaOapg.properties.id: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["username"]) -> MetaOapg.properties.username: ...
+ def __getitem__(self, name: typing_extensions.Literal["username"]) -> MetaOapg.properties.username: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["firstName"]) -> MetaOapg.properties.firstName: ...
+ def __getitem__(self, name: typing_extensions.Literal["firstName"]) -> MetaOapg.properties.firstName: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["lastName"]) -> MetaOapg.properties.lastName: ...
+ def __getitem__(self, name: typing_extensions.Literal["lastName"]) -> MetaOapg.properties.lastName: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["email"]) -> MetaOapg.properties.email: ...
+ def __getitem__(self, name: typing_extensions.Literal["email"]) -> MetaOapg.properties.email: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["phone"]) -> MetaOapg.properties.phone: ...
+ def __getitem__(self, name: typing_extensions.Literal["phone"]) -> MetaOapg.properties.phone: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ...
+ def __getitem__(self, name: typing_extensions.Literal["userStatus"]) -> MetaOapg.properties.userStatus: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ...
+ def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> MetaOapg.properties.objectWithNoDeclaredProps: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> MetaOapg.properties.objectWithNoDeclaredPropsNullable: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypeProp"]) -> MetaOapg.properties.anyTypeProp: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> MetaOapg.properties.anyTypeExceptNullProp: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ...
+ def __getitem__(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> MetaOapg.properties.anyTypePropNullable: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["username"]) -> typing.Union[MetaOapg.properties.username, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["firstName"]) -> typing.Union[MetaOapg.properties.firstName, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["lastName"]) -> typing.Union[MetaOapg.properties.lastName, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["email"]) -> typing.Union[MetaOapg.properties.email, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["phone"]) -> typing.Union[MetaOapg.properties.phone, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["userStatus"]) -> typing.Union[MetaOapg.properties.userStatus, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredProps"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredProps, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["objectWithNoDeclaredPropsNullable"]) -> typing.Union[MetaOapg.properties.objectWithNoDeclaredPropsNullable, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypeProp"]) -> typing.Union[MetaOapg.properties.anyTypeProp, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypeExceptNullProp"]) -> typing.Union[MetaOapg.properties.anyTypeExceptNullProp, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["anyTypePropNullable"]) -> typing.Union[MetaOapg.properties.anyTypePropNullable, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["id", "username", "firstName", "lastName", "email", "password", "phone", "userStatus", "objectWithNoDeclaredProps", "objectWithNoDeclaredPropsNullable", "anyTypeProp", "anyTypeExceptNullProp", "anyTypePropNullable", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py
index 45f0a63640..106a9f3cd5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.pyi
index 4086c73afd..80495060cf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/uuid_string.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py
index 48783bcd35..d470f2901a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class Whale(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def WHALE(cls):
return cls("whale")
hasBaleen = schemas.BoolSchema
@@ -64,35 +64,35 @@ class Whale(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ...
+ def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ...
+ def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", "hasBaleen", "hasTeeth", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", "hasBaleen", "hasTeeth", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi
index 48783bcd35..d470f2901a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/whale.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class Whale(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def WHALE(cls):
return cls("whale")
hasBaleen = schemas.BoolSchema
@@ -64,35 +64,35 @@ class Whale(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ...
+ def __getitem__(self, name: typing_extensions.Literal["hasBaleen"]) -> MetaOapg.properties.hasBaleen: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ...
+ def __getitem__(self, name: typing_extensions.Literal["hasTeeth"]) -> MetaOapg.properties.hasTeeth: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className", "hasBaleen", "hasTeeth", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["hasBaleen"]) -> typing.Union[MetaOapg.properties.hasBaleen, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["hasTeeth"]) -> typing.Union[MetaOapg.properties.hasTeeth, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className", "hasBaleen", "hasTeeth", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className", "hasBaleen", "hasTeeth", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py
index 93ef7ba73e..1cf74de59e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.py
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class Zebra(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ZEBRA(cls):
return cls("zebra")
@@ -66,18 +66,15 @@ class Zebra(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def PLAINS(cls):
return cls("plains")
- @classmethod
- @property
+ @schemas.classproperty
def MOUNTAIN(cls):
return cls("mountain")
- @classmethod
- @property
+ @schemas.classproperty
def GREVYS(cls):
return cls("grevys")
__annotations__ = {
@@ -89,28 +86,28 @@ class Zebra(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["type"]) -> MetaOapg.properties.type: ...
+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className"], typing.Literal["type"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className"], typing.Literal["type"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi
index 93ef7ba73e..1cf74de59e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/model/zebra.pyi
@@ -15,6 +15,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,8 +50,7 @@ class Zebra(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def ZEBRA(cls):
return cls("zebra")
@@ -66,18 +66,15 @@ class Zebra(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def PLAINS(cls):
return cls("plains")
- @classmethod
- @property
+ @schemas.classproperty
def MOUNTAIN(cls):
return cls("mountain")
- @classmethod
- @property
+ @schemas.classproperty
def GREVYS(cls):
return cls("grevys")
__annotations__ = {
@@ -89,28 +86,28 @@ class Zebra(
className: MetaOapg.properties.className
@typing.overload
- def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def __getitem__(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["type"]) -> MetaOapg.properties.type: ...
+ def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
@typing.overload
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
- def __getitem__(self, name: typing.Union[typing.Literal["className"], typing.Literal["type"], str, ]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["className"]) -> MetaOapg.properties.className: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["className"], typing.Literal["type"], str, ]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["className"], typing_extensions.Literal["type"], str, ]):
return super().get_item_oapg(name)
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py
index 9460129eaf..800c45e3ca 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.pyi
index 2852911467..dc0216a43f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/another_fake_dummy/patch.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.py
similarity index 96%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.py
index 3ef10fb301..1d7550bf63 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -30,14 +32,14 @@ RequiredStringGroupSchema = schemas.IntSchema
RequiredInt64GroupSchema = schemas.Int64Schema
StringGroupSchema = schemas.IntSchema
Int64GroupSchema = schemas.Int64Schema
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'required_string_group': typing.Union[RequiredStringGroupSchema, decimal.Decimal, int, ],
'required_int64_group': typing.Union[RequiredInt64GroupSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'string_group': typing.Union[StringGroupSchema, decimal.Decimal, int, ],
@@ -80,13 +82,13 @@ request_query_int64_group = api_client.QueryParameter(
# header params
RequiredBooleanGroupSchema = schemas.BoolSchema
BooleanGroupSchema = schemas.BoolSchema
-RequestRequiredHeaderParams = typing.TypedDict(
+RequestRequiredHeaderParams = typing_extensions.TypedDict(
'RequestRequiredHeaderParams',
{
'required_boolean_group': typing.Union[RequiredBooleanGroupSchema, bool, ],
}
)
-RequestOptionalHeaderParams = typing.TypedDict(
+RequestOptionalHeaderParams = typing_extensions.TypedDict(
'RequestOptionalHeaderParams',
{
'boolean_group': typing.Union[BooleanGroupSchema, bool, ],
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.pyi
index 64edfd2d7f..7c79e3509d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/delete.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/delete.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.py
similarity index 90%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.py
index 0aaa37a01f..6c9c94cccf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,13 +48,11 @@ class EnumQueryStringArraySchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -82,18 +82,15 @@ class EnumQueryStringSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
@@ -108,13 +105,11 @@ class EnumQueryIntegerSchema(
schemas.Int32Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_2(cls):
return cls(-2)
@@ -129,21 +124,19 @@ class EnumQueryDoubleSchema(
schemas.Float64Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1_PT_1(cls):
return cls(1.1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1_PT_2(cls):
return cls(-1.2)
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'enum_query_string_array': typing.Union[EnumQueryStringArraySchema, list, tuple, ],
@@ -204,13 +197,11 @@ class EnumHeaderStringArraySchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -240,26 +231,23 @@ class EnumHeaderStringSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
-RequestRequiredHeaderParams = typing.TypedDict(
+RequestRequiredHeaderParams = typing_extensions.TypedDict(
'RequestRequiredHeaderParams',
{
}
)
-RequestOptionalHeaderParams = typing.TypedDict(
+RequestOptionalHeaderParams = typing_extensions.TypedDict(
'RequestOptionalHeaderParams',
{
'enum_header_string_array': typing.Union[EnumHeaderStringArraySchema, list, tuple, ],
@@ -314,13 +302,11 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -350,18 +336,15 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
__annotations__ = {
@@ -370,29 +353,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_form_string_array"]) -> MetaOapg.properties.enum_form_string_array: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_form_string_array"]) -> MetaOapg.properties.enum_form_string_array: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_form_string"]) -> MetaOapg.properties.enum_form_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_form_string"]) -> MetaOapg.properties.enum_form_string: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["enum_form_string_array", "enum_form_string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_form_string_array", "enum_form_string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_form_string_array"]) -> typing.Union[MetaOapg.properties.enum_form_string_array, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_form_string_array"]) -> typing.Union[MetaOapg.properties.enum_form_string_array, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["enum_form_string_array", "enum_form_string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_form_string_array", "enum_form_string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.pyi
similarity index 89%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.pyi
index adce8870c7..b6ceae7b8e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,13 +46,11 @@ class EnumQueryStringArraySchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -80,18 +80,15 @@ class EnumQueryStringSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
@@ -106,13 +103,11 @@ class EnumQueryIntegerSchema(
schemas.Int32Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1(cls):
return cls(1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_2(cls):
return cls(-2)
@@ -127,13 +122,11 @@ class EnumQueryDoubleSchema(
schemas.Float64Schema
):
- @classmethod
- @property
+ @schemas.classproperty
def POSITIVE_1_PT_1(cls):
return cls(1.1)
- @classmethod
- @property
+ @schemas.classproperty
def NEGATIVE_1_PT_2(cls):
return cls(-1.2)
# header params
@@ -157,13 +150,11 @@ class EnumHeaderStringArraySchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -193,18 +184,15 @@ class EnumHeaderStringSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
# body param
@@ -238,13 +226,11 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def GREATER_THAN(cls):
return cls(">")
- @classmethod
- @property
+ @schemas.classproperty
def DOLLAR(cls):
return cls("$")
@@ -274,18 +260,15 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def _ABC(cls):
return cls("_abc")
- @classmethod
- @property
+ @schemas.classproperty
def EFG(cls):
return cls("-efg")
- @classmethod
- @property
+ @schemas.classproperty
def XYZ(cls):
return cls("(xyz)")
__annotations__ = {
@@ -294,29 +277,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_form_string_array"]) -> MetaOapg.properties.enum_form_string_array: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_form_string_array"]) -> MetaOapg.properties.enum_form_string_array: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["enum_form_string"]) -> MetaOapg.properties.enum_form_string: ...
+ def __getitem__(self, name: typing_extensions.Literal["enum_form_string"]) -> MetaOapg.properties.enum_form_string: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["enum_form_string_array", "enum_form_string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["enum_form_string_array", "enum_form_string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_form_string_array"]) -> typing.Union[MetaOapg.properties.enum_form_string_array, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_form_string_array"]) -> typing.Union[MetaOapg.properties.enum_form_string_array, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["enum_form_string"]) -> typing.Union[MetaOapg.properties.enum_form_string, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["enum_form_string_array", "enum_form_string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["enum_form_string_array", "enum_form_string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py
index 166fdf2737..cb0a1d3c5a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.pyi
index 4e18bd5d59..9513e0bc08 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/patch.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.py
similarity index 75%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.py
index 88f630abbe..54172de750 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -155,101 +157,101 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
double: MetaOapg.properties.double
@typing.overload
- def __getitem__(self, name: typing.Literal["integer"]) -> MetaOapg.properties.integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> MetaOapg.properties.string: ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["callback"]) -> MetaOapg.properties.callback: ...
+ def __getitem__(self, name: typing_extensions.Literal["callback"]) -> MetaOapg.properties.callback: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.pyi
similarity index 72%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.pyi
index 254c4087e5..e6ee494da3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -117,101 +119,101 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
double: MetaOapg.properties.double
@typing.overload
- def __getitem__(self, name: typing.Literal["integer"]) -> MetaOapg.properties.integer: ...
+ def __getitem__(self, name: typing_extensions.Literal["integer"]) -> MetaOapg.properties.integer: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int32"]) -> MetaOapg.properties.int32: ...
+ def __getitem__(self, name: typing_extensions.Literal["int32"]) -> MetaOapg.properties.int32: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["int64"]) -> MetaOapg.properties.int64: ...
+ def __getitem__(self, name: typing_extensions.Literal["int64"]) -> MetaOapg.properties.int64: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def __getitem__(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["float"]) -> MetaOapg.properties._float: ...
+ def __getitem__(self, name: typing_extensions.Literal["float"]) -> MetaOapg.properties._float: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def __getitem__(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> MetaOapg.properties.string: ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> MetaOapg.properties.string: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
+ def __getitem__(self, name: typing_extensions.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def __getitem__(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["binary"]) -> MetaOapg.properties.binary: ...
+ def __getitem__(self, name: typing_extensions.Literal["binary"]) -> MetaOapg.properties.binary: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["date"]) -> MetaOapg.properties.date: ...
+ def __getitem__(self, name: typing_extensions.Literal["date"]) -> MetaOapg.properties.date: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
+ def __getitem__(self, name: typing_extensions.Literal["dateTime"]) -> MetaOapg.properties.dateTime: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["password"]) -> MetaOapg.properties.password: ...
+ def __getitem__(self, name: typing_extensions.Literal["password"]) -> MetaOapg.properties.password: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["callback"]) -> MetaOapg.properties.callback: ...
+ def __getitem__(self, name: typing_extensions.Literal["callback"]) -> MetaOapg.properties.callback: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["integer"]) -> typing.Union[MetaOapg.properties.integer, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int32"]) -> typing.Union[MetaOapg.properties.int32, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["int64"]) -> typing.Union[MetaOapg.properties.int64, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["number"]) -> MetaOapg.properties.number: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["number"]) -> MetaOapg.properties.number: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["float"]) -> typing.Union[MetaOapg.properties._float, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["double"]) -> MetaOapg.properties.double: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["double"]) -> MetaOapg.properties.double: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union[MetaOapg.properties.string, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["pattern_without_delimiter"]) -> MetaOapg.properties.pattern_without_delimiter: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["byte"]) -> MetaOapg.properties.byte: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["byte"]) -> MetaOapg.properties.byte: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["binary"]) -> typing.Union[MetaOapg.properties.binary, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["date"]) -> typing.Union[MetaOapg.properties.date, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["dateTime"]) -> typing.Union[MetaOapg.properties.dateTime, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["password"]) -> typing.Union[MetaOapg.properties.password, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["callback"]) -> typing.Union[MetaOapg.properties.callback, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["integer", "int32", "int64", "number", "float", "double", "string", "pattern_without_delimiter", "byte", "binary", "date", "dateTime", "password", "callback", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/__init__.py
deleted file mode 100644
index 436c489b43..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_1/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.fake_1 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.FAKE
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/__init__.py
deleted file mode 100644
index efc7fd88d8..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_2/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.fake_2 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.FAKE
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/__init__.py
deleted file mode 100644
index d0c92cd6fd..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_3/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.fake_3 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.FAKE
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py
index 9fee31b8f1..c1ee6c0144 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi
index c563c0ab2e..297cb4db50 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py
index 62f2642c19..c6174989d1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.pyi
index 28faa57496..d5f6d24f0a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_file_schema/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py
index 6aee90ea3a..3f34b57824 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# query params
QuerySchema = schemas.StrSchema
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'query': typing.Union[QuerySchema, str, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.pyi
index a1d3d44816..43c5816494 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_body_with_query_params/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py
index af729e9519..1ecaf9befa 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -28,7 +30,7 @@ from . import path
SomeVarSchema = schemas.StrSchema
SomeVarSchema = schemas.StrSchema
SomeVarSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'someVar': typing.Union[SomeVarSchema, str, ],
@@ -36,7 +38,7 @@ RequestRequiredQueryParams = typing.TypedDict(
'some_var': typing.Union[SomeVarSchema, str, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.pyi
index fd6235f8a3..b11af7bfdd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_case_sensitive_params/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py
index d50cecf035..adec01e9ae 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.pyi
index dd7a0e087a..8381fa1a81 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_classname_test/patch.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py
index 6eda6ff730..3cc5cf64c1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -26,13 +28,13 @@ from . import path
# path params
IdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'id': typing.Union[IdSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.pyi
index a22dfd6ae8..d7522ad66f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_delete_coffee_id/delete.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py
index 35053222c6..956d347dbd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.pyi
index 51d19237fa..3ba8d20c2a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_health/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py
index dec8f7350f..e09fc626a5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.pyi
index 5281187834..9312b60c9d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_additional_properties/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py
index 3510a42cdc..43c746f71e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -45,8 +47,7 @@ class CompositionAtRootSchema(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -101,8 +102,7 @@ class CompositionInPropertySchema(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -133,23 +133,23 @@ class CompositionInPropertySchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
@@ -167,12 +167,12 @@ class CompositionInPropertySchema(
_configuration=_configuration,
**kwargs,
)
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'compositionAtRoot': typing.Union[CompositionAtRootSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
@@ -218,8 +218,7 @@ class SchemaForRequestBodyApplicationJson(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -274,8 +273,7 @@ class SchemaForRequestBodyMultipartFormData(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -306,23 +304,23 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
@@ -369,8 +367,7 @@ class SchemaFor200ResponseBodyApplicationJson(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -425,8 +422,7 @@ class SchemaFor200ResponseBodyMultipartFormData(
min_length = 1
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -457,23 +453,23 @@ class SchemaFor200ResponseBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi
index 6c58553a40..ef77ebb245 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_inline_composition_/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -40,8 +42,7 @@ class CompositionAtRootSchema(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -93,8 +94,7 @@ class CompositionInPropertySchema(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -125,23 +125,23 @@ class CompositionInPropertySchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
@@ -176,8 +176,7 @@ class SchemaForRequestBodyApplicationJson(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -229,8 +228,7 @@ class SchemaForRequestBodyMultipartFormData(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -261,23 +259,23 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
@@ -311,8 +309,7 @@ class SchemaFor200ResponseBodyApplicationJson(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -364,8 +361,7 @@ class SchemaFor200ResponseBodyMultipartFormData(
pass
@classmethod
- @property
- @functools.cache
+ @functools.lru_cache()
def all_of(cls):
# we need this here to make our import statements work
# we must store _composed_schemas in here so the code is only run
@@ -396,23 +392,23 @@ class SchemaFor200ResponseBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
+ def __getitem__(self, name: typing_extensions.Literal["someProp"]) -> MetaOapg.properties.someProp: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["someProp"]) -> typing.Union[MetaOapg.properties.someProp, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["someProp", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["someProp", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py
index 283cc5cf17..69d6a91581 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,29 +53,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
param2: MetaOapg.properties.param2
@typing.overload
- def __getitem__(self, name: typing.Literal["param"]) -> MetaOapg.properties.param: ...
+ def __getitem__(self, name: typing_extensions.Literal["param"]) -> MetaOapg.properties.param: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ...
+ def __getitem__(self, name: typing_extensions.Literal["param2"]) -> MetaOapg.properties.param2: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["param", "param2", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["param", "param2", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["param"]) -> MetaOapg.properties.param: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["param"]) -> MetaOapg.properties.param: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["param2"]) -> MetaOapg.properties.param2: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["param", "param2", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["param", "param2", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi
index 1bbde21cfd..71c3412515 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_form_data/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,29 +51,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
param2: MetaOapg.properties.param2
@typing.overload
- def __getitem__(self, name: typing.Literal["param"]) -> MetaOapg.properties.param: ...
+ def __getitem__(self, name: typing_extensions.Literal["param"]) -> MetaOapg.properties.param: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ...
+ def __getitem__(self, name: typing_extensions.Literal["param2"]) -> MetaOapg.properties.param2: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["param", "param2", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["param", "param2", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["param"]) -> MetaOapg.properties.param: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["param"]) -> MetaOapg.properties.param: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["param2"]) -> MetaOapg.properties.param2: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["param2"]) -> MetaOapg.properties.param2: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["param", "param2", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["param", "param2", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.py
index e09d0a145d..00b8cf4542 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.pyi
index 046608cd62..65d08b9962 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_patch/patch.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py
index 478b441a51..9f003807d2 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.pyi
index 463facbd75..a2700e0627 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_json_with_charset/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py
index eeae1e9e21..36d5018988 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -41,23 +43,23 @@ class MapBeanSchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["keyword"]) -> MetaOapg.properties.keyword: ...
+ def __getitem__(self, name: typing_extensions.Literal["keyword"]) -> MetaOapg.properties.keyword: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["keyword", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["keyword", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["keyword", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keyword", ], str]):
return super().get_item_oapg(name)
@@ -75,12 +77,12 @@ class MapBeanSchema(
_configuration=_configuration,
**kwargs,
)
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'mapBean': typing.Union[MapBeanSchema, dict, frozendict.frozendict, ],
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi
index f51bb30f54..3933c00010 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_obj_in_query/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -39,23 +41,23 @@ class MapBeanSchema(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["keyword"]) -> MetaOapg.properties.keyword: ...
+ def __getitem__(self, name: typing_extensions.Literal["keyword"]) -> MetaOapg.properties.keyword: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["keyword", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["keyword", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["keyword"]) -> typing.Union[MetaOapg.properties.keyword, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["keyword", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["keyword", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py
index 7bebd0c901..c0c42ad337 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -31,12 +33,12 @@ ABSchema = schemas.StrSchema
AbSchema = schemas.StrSchema
ModelSelfSchema = schemas.StrSchema
ABSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'1': typing.Union[Model1Schema, str, ],
@@ -88,12 +90,12 @@ Model1Schema = schemas.StrSchema
ABSchema = schemas.StrSchema
ModelSelfSchema = schemas.StrSchema
ABSchema = schemas.StrSchema
-RequestRequiredHeaderParams = typing.TypedDict(
+RequestRequiredHeaderParams = typing_extensions.TypedDict(
'RequestRequiredHeaderParams',
{
}
)
-RequestOptionalHeaderParams = typing.TypedDict(
+RequestOptionalHeaderParams = typing_extensions.TypedDict(
'RequestOptionalHeaderParams',
{
'1': typing.Union[Model1Schema, str, ],
@@ -135,7 +137,7 @@ ABSchema = schemas.StrSchema
AbSchema = schemas.StrSchema
ModelSelfSchema = schemas.StrSchema
ABSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'1': typing.Union[Model1Schema, str, ],
@@ -145,7 +147,7 @@ RequestRequiredPathParams = typing.TypedDict(
'A-B': typing.Union[ABSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
@@ -193,12 +195,12 @@ ABSchema = schemas.StrSchema
AbSchema = schemas.StrSchema
ModelSelfSchema = schemas.StrSchema
ABSchema = schemas.StrSchema
-RequestRequiredCookieParams = typing.TypedDict(
+RequestRequiredCookieParams = typing_extensions.TypedDict(
'RequestRequiredCookieParams',
{
}
)
-RequestOptionalCookieParams = typing.TypedDict(
+RequestOptionalCookieParams = typing_extensions.TypedDict(
'RequestOptionalCookieParams',
{
'1': typing.Union[Model1Schema, str, ],
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi
index 01a29e9256..f87b6b9b1d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py
index 7cffcf6107..ef60c3b93d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# path params
PetIdSchema = schemas.Int64Schema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'petId': typing.Union[PetIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
@@ -77,29 +79,29 @@ class SchemaForRequestBodyMultipartFormData(
requiredFile: MetaOapg.properties.requiredFile
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
+ def __getitem__(self, name: typing_extensions.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "requiredFile", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "requiredFile", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "requiredFile", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "requiredFile", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi
index 7a9677c518..e9c0825802 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,29 +53,29 @@ class SchemaForRequestBodyMultipartFormData(
requiredFile: MetaOapg.properties.requiredFile
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
+ def __getitem__(self, name: typing_extensions.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "requiredFile", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "requiredFile", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["requiredFile"]) -> MetaOapg.properties.requiredFile: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "requiredFile", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "requiredFile", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py
index b153cf93b7..ae601b1781 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -28,12 +30,12 @@ from . import path
# query params
MapBeanSchema = Foo
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
'mapBean': typing.Union[MapBeanSchema, ],
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.pyi
index 3974397cc8..272d34c102 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_ref_obj_in_query/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py
index d0cf56811d..fd14aeb19c 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.pyi
index 9d0a50a15a..f0a68485d9 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_array_of_enums/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py
index 4a31814b9a..69be2acbc8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.pyi
index c4cc351503..c0efa3e393 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_arraymodel/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py
index 8dedf7b371..4341a21a72 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.pyi
index 713ad4c77e..bb75c710c6 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_boolean/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py
index ab801aee41..8a5362d3cf 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi
index a41aecfb7b..fd0f12aec0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py
index 22c021a332..e7ea25ea04 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.pyi
index b624784aee..29291eef29 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_enum/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py
index b2624ccbba..4154902886 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.pyi
index e5bb6dfa29..41062d497f 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_mammal/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py
index 60a98407a4..4ff581fd00 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.pyi
index e2d8348634..5704180196 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_number/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py
index 70026afb36..bff2bd9a94 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi
index b95948c276..e48de2e516 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py
index 14856285c0..6e990df9cd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.pyi
index d2f1081e1c..422e8d0829 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_refs_string/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py
index d6be002e6e..cfa2be9bec 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.pyi
index 4b74e55756..827291c6f8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_response_without_schema/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py
index 74896bc5ca..af5cb28dd1 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -143,7 +145,7 @@ class ContextSchema(
def __getitem__(self, i: int) -> MetaOapg.items:
return super().__getitem__(i)
RefParamSchema = StringWithValidation
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'pipe': typing.Union[PipeSchema, list, tuple, ],
@@ -154,7 +156,7 @@ RequestRequiredQueryParams = typing.TypedDict(
'refParam': typing.Union[RefParamSchema, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.pyi
index c750ad375c..9b7dee9311 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_test_query_paramters/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py
index 697f1b7903..c705235d88 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.pyi
index fe2e0f0664..f7825657cd 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_download_file/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py
index e11344e9db..90d7d406eb 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,29 +53,29 @@ class SchemaForRequestBodyMultipartFormData(
file: MetaOapg.properties.file
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi
index ab1e21c65f..515aa16347 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_file/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,29 +51,29 @@ class SchemaForRequestBodyMultipartFormData(
file: MetaOapg.properties.file
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py
index 4cf3f10664..561b9840e8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -66,23 +68,23 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["files"]) -> MetaOapg.properties.files: ...
+ def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["files", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["files", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["files", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["files", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi
index eac2bbb44e..800be99613 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/fake_upload_files/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -64,23 +66,23 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["files"]) -> MetaOapg.properties.files: ...
+ def __getitem__(self, name: typing_extensions.Literal["files"]) -> MetaOapg.properties.files: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["files", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["files", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["files"]) -> typing.Union[MetaOapg.properties.files, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["files", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["files", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py
index 6506bcb6db..a396adbc02 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,32 +40,31 @@ class SchemaFor0ResponseBodyApplicationJson(
class properties:
- @classmethod
- @property
- def string(cls) -> typing.Type['Foo']:
+ @staticmethod
+ def string() -> typing.Type['Foo']:
return Foo
__annotations__ = {
"string": string,
}
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> 'Foo': ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> 'Foo': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi
index 0ee92bc160..4f7e0cd085 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/foo/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -36,32 +38,31 @@ class SchemaFor0ResponseBodyApplicationJson(
class properties:
- @classmethod
- @property
- def string(cls) -> typing.Type['Foo']:
+ @staticmethod
+ def string() -> typing.Type['Foo']:
return Foo
__annotations__ = {
"string": string,
}
@typing.overload
- def __getitem__(self, name: typing.Literal["string"]) -> 'Foo': ...
+ def __getitem__(self, name: typing_extensions.Literal["string"]) -> 'Foo': ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["string", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["string", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["string"]) -> typing.Union['Foo', schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["string", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["string", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py
index d0dc900981..d944d243b5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.pyi
index c086ce607d..efd25a1417 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.py
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.py
index fb7f977e55..8658e89bdc 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.pyi
index c308277d8d..eea41d2ad0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/__init__.py
deleted file mode 100644
index c0199ca0c2..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_2/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.pet_2 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.PET
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py
index 31d2079892..3f9a2430f0 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -49,18 +51,15 @@ class StatusSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def AVAILABLE(cls):
return cls("available")
- @classmethod
- @property
+ @schemas.classproperty
def PENDING(cls):
return cls("pending")
- @classmethod
- @property
+ @schemas.classproperty
def SOLD(cls):
return cls("sold")
@@ -77,13 +76,13 @@ class StatusSchema(
def __getitem__(self, i: int) -> MetaOapg.items:
return super().__getitem__(i)
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'status': typing.Union[StatusSchema, list, tuple, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
@@ -114,9 +113,8 @@ class SchemaFor200ResponseBodyApplicationXml(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
@@ -141,9 +139,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.pyi
index 6297993908..77db139f32 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_status/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -47,18 +49,15 @@ class StatusSchema(
schemas.StrSchema
):
- @classmethod
- @property
+ @schemas.classproperty
def AVAILABLE(cls):
return cls("available")
- @classmethod
- @property
+ @schemas.classproperty
def PENDING(cls):
return cls("pending")
- @classmethod
- @property
+ @schemas.classproperty
def SOLD(cls):
return cls("sold")
@@ -84,9 +83,8 @@ class SchemaFor200ResponseBodyApplicationXml(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
@@ -111,9 +109,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py
index 638b6f9f2f..03b395a6da 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -51,13 +53,13 @@ class TagsSchema(
def __getitem__(self, i: int) -> MetaOapg.items:
return super().__getitem__(i)
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'tags': typing.Union[TagsSchema, list, tuple, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
@@ -88,9 +90,8 @@ class SchemaFor200ResponseBodyApplicationXml(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
@@ -115,9 +116,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.pyi
index 1c95c84496..a4e2c33e5e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_find_by_tags/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -58,9 +60,8 @@ class SchemaFor200ResponseBodyApplicationXml(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
@@ -85,9 +86,8 @@ class SchemaFor200ResponseBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['Pet']:
+ @staticmethod
+ def items() -> typing.Type['Pet']:
return Pet
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py
index d30ae14e43..83c429bdea 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -27,12 +29,12 @@ from . import path
# header params
ApiKeySchema = schemas.StrSchema
-RequestRequiredHeaderParams = typing.TypedDict(
+RequestRequiredHeaderParams = typing_extensions.TypedDict(
'RequestRequiredHeaderParams',
{
}
)
-RequestOptionalHeaderParams = typing.TypedDict(
+RequestOptionalHeaderParams = typing_extensions.TypedDict(
'RequestOptionalHeaderParams',
{
'api_key': typing.Union[ApiKeySchema, str, ],
@@ -52,13 +54,13 @@ request_header_api_key = api_client.HeaderParameter(
)
# path params
PetIdSchema = schemas.Int64Schema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'petId': typing.Union[PetIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.pyi
index 19aaf8f02a..821fe2bd79 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/delete.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.py
similarity index 97%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.py
index 5187469693..2309680029 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# path params
PetIdSchema = schemas.Int64Schema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'petId': typing.Union[PetIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.pyi
index 4812729dbd..184adb607d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.py
similarity index 90%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.py
index 5f8722c7dd..76250ba9b3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -27,13 +29,13 @@ from . import path
# path params
PetIdSchema = schemas.Int64Schema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'petId': typing.Union[PetIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
@@ -70,29 +72,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "status", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "status", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "status", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "status", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.pyi
similarity index 90%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.pyi
index 6ba44f2481..4a1eee42e7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -44,29 +46,29 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["name"]) -> MetaOapg.properties.name: ...
+ def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["status"]) -> MetaOapg.properties.status: ...
+ def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["name", "status", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", "status", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["name", "status", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", "status", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/__init__.py
deleted file mode 100644
index e71bd7be71..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_1/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.pet_pet_id_1 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.PET_PET_ID
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/__init__.py
deleted file mode 100644
index 711e6c0d4b..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_3/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.pet_pet_id_3 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.PET_PET_ID
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py
index 373ff78daf..432d558606 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# path params
PetIdSchema = schemas.Int64Schema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'petId': typing.Union[PetIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
@@ -72,29 +74,29 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi
index 041a327eb6..08b46e10d8 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/pet_pet_id_upload_image/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -46,29 +48,29 @@ class SchemaForRequestBodyMultipartFormData(
}
@typing.overload
- def __getitem__(self, name: typing.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
+ def __getitem__(self, name: typing_extensions.Literal["additionalMetadata"]) -> MetaOapg.properties.additionalMetadata: ...
@typing.overload
- def __getitem__(self, name: typing.Literal["file"]) -> MetaOapg.properties.file: ...
+ def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
@typing.overload
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
- def __getitem__(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def __getitem__(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
# dict_instance[name] accessor
return super().__getitem__(name)
@typing.overload
- def get_item_oapg(self, name: typing.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["additionalMetadata"]) -> typing.Union[MetaOapg.properties.additionalMetadata, schemas.Unset]: ...
@typing.overload
- def get_item_oapg(self, name: typing.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ...
+ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> typing.Union[MetaOapg.properties.file, schemas.Unset]: ...
@typing.overload
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
- def get_item_oapg(self, name: typing.Union[typing.Literal["additionalMetadata", "file", ], str]):
+ def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["additionalMetadata", "file", ], str]):
return super().get_item_oapg(name)
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py
index 00e0842707..794c49c9f2 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.pyi
index c4ee012ec3..6ace8ae4e5 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_inventory/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py
index 0d7379e587..aba51cba12 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.pyi
index 0b2c8ee184..5a0d7684aa 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py
index c22620f69a..05b16de6cb 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -26,13 +28,13 @@ from . import path
# path params
OrderIdSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'order_id': typing.Union[OrderIdSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.pyi
index a06a0f4659..e4350d629e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/delete.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.py
similarity index 97%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.py
index 9d57ad53c4..eed2c94e67 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -38,13 +40,13 @@ class OrderIdSchema(
class MetaOapg:
inclusive_maximum = 5
inclusive_minimum = 1
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'order_id': typing.Union[OrderIdSchema, decimal.Decimal, int, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.pyi
index 2e7762d00f..cf9aca7145 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/__init__.py
deleted file mode 100644
index f376d4ba8d..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/store_order_order_id_1/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.store_order_order_id_1 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.STORE_ORDER_ORDER_ID
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py
index 571efcad80..4dd2c94c16 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.pyi
index 9578881d20..171956cf70 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py
index 3588996c2a..35e44ef1d4 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +39,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['User']:
+ @staticmethod
+ def items() -> typing.Type['User']:
return User
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.pyi
index 4cc093a8ad..19037fd1b3 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_array/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,9 +37,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['User']:
+ @staticmethod
+ def items() -> typing.Type['User']:
return User
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py
index 3b6625b035..491da3305b 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -37,9 +39,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['User']:
+ @staticmethod
+ def items() -> typing.Type['User']:
return User
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.pyi
index 8cd0b172ea..2f2321d850 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_create_with_list/post.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -35,9 +37,8 @@ class SchemaForRequestBodyApplicationJson(
class MetaOapg:
- @classmethod
- @property
- def items(cls) -> typing.Type['User']:
+ @staticmethod
+ def items() -> typing.Type['User']:
return User
def __new__(
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py
index 766e952f13..0e913fbb36 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -28,14 +30,14 @@ from . import path
# query params
UsernameSchema = schemas.StrSchema
PasswordSchema = schemas.StrSchema
-RequestRequiredQueryParams = typing.TypedDict(
+RequestRequiredQueryParams = typing_extensions.TypedDict(
'RequestRequiredQueryParams',
{
'username': typing.Union[UsernameSchema, str, ],
'password': typing.Union[PasswordSchema, str, ],
}
)
-RequestOptionalQueryParams = typing.TypedDict(
+RequestOptionalQueryParams = typing_extensions.TypedDict(
'RequestOptionalQueryParams',
{
},
@@ -75,7 +77,7 @@ x_expires_after_parameter = api_client.HeaderParameter(
)
SchemaFor200ResponseBodyApplicationXml = schemas.StrSchema
SchemaFor200ResponseBodyApplicationJson = schemas.StrSchema
-ResponseHeadersFor200 = typing.TypedDict(
+ResponseHeadersFor200 = typing_extensions.TypedDict(
'ResponseHeadersFor200',
{
'X-Rate-Limit': XRateLimitSchema,
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.pyi
index 8db9487c15..fb90bd6d3a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_login/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py
index fc6bf8c02d..e9b8bf377e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.pyi
index 8fed185708..ba8f80388d 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_logout/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py
index 2ecb3cbd6d..c78b157c12 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -26,13 +28,13 @@ from . import path
# path params
UsernameSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'username': typing.Union[UsernameSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.pyi
index a3ae44ebcf..77a7de8338 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/delete.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from petstore_api import api_client, exceptions
@@ -16,6 +17,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.py
similarity index 97%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.py
index 127b6b47d8..ffb005b23e 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# path params
UsernameSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'username': typing.Union[UsernameSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.pyi
index e65db0985c..8096176552 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/get.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/get.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.py
similarity index 97%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.py
index ac0bce944a..b9060cb6e7 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.py
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
@@ -29,13 +31,13 @@ from . import path
# path params
UsernameSchema = schemas.StrSchema
-RequestRequiredPathParams = typing.TypedDict(
+RequestRequiredPathParams = typing_extensions.TypedDict(
'RequestRequiredPathParams',
{
'username': typing.Union[UsernameSchema, str, ],
}
)
-RequestOptionalPathParams = typing.TypedDict(
+RequestOptionalPathParams = typing_extensions.TypedDict(
'RequestOptionalPathParams',
{
},
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.pyi b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.pyi
similarity index 98%
rename from samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.pyi
rename to samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.pyi
index 5459114d32..fd208aa805 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/put.pyi
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username/put.pyi
@@ -7,6 +7,7 @@
"""
from dataclasses import dataclass
+import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
@@ -17,6 +18,7 @@ import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
+import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/__init__.py
deleted file mode 100644
index d6f09581ef..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_1/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.user_username_1 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.USER_USERNAME
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/__init__.py
deleted file mode 100644
index ef8cbb9629..0000000000
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/paths/user_username_2/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# do not import all endpoints into this module because that uses a lot of memory and stack frames
-# if you need the ability to import all endpoints from this module, import them with
-# from petstore_api.paths.user_username_2 import Api
-
-from petstore_api.paths import PathValues
-
-path = PathValues.USER_USERNAME
\ No newline at end of file
diff --git a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py
index 4e13043fca..80ee17062a 100644
--- a/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py
+++ b/samples/openapi3/client/petstore/python-experimental/petstore_api/schemas.py
@@ -15,6 +15,7 @@ import functools
import decimal
import io
import re
+import types
import typing
import uuid
@@ -183,9 +184,17 @@ class Singleton:
return f'<{self.__class__.__name__}: {super().__repr__()}>'
+class classproperty:
+
+ def __init__(self, fget):
+ self.fget = fget
+
+ def __get__(self, owner_self, owner_cls):
+ return self.fget(owner_cls)
+
+
class NoneClass(Singleton):
- @classmethod
- @property
+ @classproperty
def NONE(cls):
return cls(None)
@@ -194,17 +203,15 @@ class NoneClass(Singleton):
class BoolClass(Singleton):
- @classmethod
- @property
+ @classproperty
def TRUE(cls):
return cls(True)
- @classmethod
- @property
+ @classproperty
def FALSE(cls):
return cls(False)
- @functools.cache
+ @functools.lru_cache()
def __bool__(self) -> bool:
for key, instance in self._instances.items():
if self is instance:
@@ -256,6 +263,16 @@ class Schema:
return "is {0}".format(all_class_names[0])
return "is one of [{0}]".format(", ".join(all_class_names))
+ @staticmethod
+ def _get_class_oapg(item_cls: typing.Union[types.FunctionType, staticmethod, typing.Type['Schema']]) -> typing.Type['Schema']:
+ if isinstance(item_cls, types.FunctionType):
+ # referenced schema
+ return item_cls()
+ elif isinstance(item_cls, staticmethod):
+ # referenced schema
+ return item_cls.__func__()
+ return item_cls
+
@classmethod
def __type_error_message(
cls, var_value=None, var_name=None, valid_classes=None, key_type=None
@@ -863,39 +880,19 @@ class ValidatorBase:
)
-class Validator(typing.Protocol):
- @classmethod
- def _validate_oapg(
- cls,
- arg,
- validation_metadata: ValidationMetadata,
- ) -> typing.Dict[typing.Tuple[typing.Union[str, int], ...], typing.Set[typing.Union['Schema', str, decimal.Decimal, BoolClass, NoneClass, frozendict.frozendict, tuple]]]:
- pass
-
-
class EnumMakerBase:
pass
-class EnumMakerInterface(Validator):
- @classmethod
- @property
- def _enum_value_to_name(
- cls
- ) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
- pass
-
-
-def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> EnumMakerInterface:
+def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]) -> 'SchemaEnumMaker':
class SchemaEnumMaker(EnumMakerBase):
@classmethod
- @property
def _enum_value_to_name(
- cls
+ cls
) -> typing.Dict[typing.Union[str, decimal.Decimal, bool, none_type], str]:
pass
try:
- super_enum_value_to_name = super()._enum_value_to_name
+ super_enum_value_to_name = super()._enum_value_to_name()
except AttributeError:
return enum_value_to_name
intersection = dict(enum_value_to_name.items() & super_enum_value_to_name.items())
@@ -912,9 +909,9 @@ def SchemaEnumMakerClsFactory(enum_value_to_name: typing.Dict[typing.Union[str,
Validates that arg is in the enum's allowed values
"""
try:
- cls._enum_value_to_name[arg]
+ cls._enum_value_to_name()[arg]
except KeyError:
- raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name))
+ raise ApiValueError("Invalid value {} passed in to {}, {}".format(arg, cls, cls._enum_value_to_name()))
return super()._validate_oapg(arg, validation_metadata=validation_metadata)
return SchemaEnumMaker
@@ -1041,7 +1038,7 @@ class StrBase(ValidatorBase):
class UUIDBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_uuid_oapg(self) -> uuid.UUID:
return uuid.UUID(self)
@@ -1107,7 +1104,7 @@ DEFAULT_ISOPARSER = CustomIsoparser()
class DateBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_date_oapg(self) -> date:
return DEFAULT_ISOPARSER.parse_isodate(self)
@@ -1138,7 +1135,7 @@ class DateBase:
class DateTimeBase:
@property
- @functools.cache
+ @functools.lru_cache()
def as_datetime_oapg(self) -> datetime:
return DEFAULT_ISOPARSER.parse_isodatetime(self)
@@ -1175,7 +1172,7 @@ class DecimalBase:
"""
@property
- @functools.cache
+ @functools.lru_cache()
def as_decimal_oapg(self) -> decimal.Decimal:
return decimal.Decimal(self)
@@ -1344,6 +1341,7 @@ class ListBase(ValidatorBase):
# if we have definitions for an items schema, use it
# otherwise accept anything
item_cls = getattr(cls.MetaOapg, 'items', UnsetAnyTypeSchema)
+ item_cls = cls._get_class_oapg(item_cls)
path_to_schemas = {}
for i, value in enumerate(list_items):
item_validation_metadata = ValidationMetadata(
@@ -1477,7 +1475,7 @@ class Discriminable:
"""
if not hasattr(cls.MetaOapg, 'discriminator'):
return None
- disc = cls.MetaOapg.discriminator
+ disc = cls.MetaOapg.discriminator()
if disc_property_name not in disc:
return None
discriminated_cls = disc[disc_property_name].get(disc_payload_value)
@@ -1492,21 +1490,24 @@ class Discriminable:
):
return None
# TODO stop traveling if a cycle is hit
- for allof_cls in getattr(cls.MetaOapg, 'all_of', []):
- discriminated_cls = allof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for oneof_cls in getattr(cls.MetaOapg, 'one_of', []):
- discriminated_cls = oneof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
- for anyof_cls in getattr(cls.MetaOapg, 'any_of', []):
- discriminated_cls = anyof_cls.get_discriminated_class_oapg(
- disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
- if discriminated_cls is not None:
- return discriminated_cls
+ if hasattr(cls.MetaOapg, 'all_of'):
+ for allof_cls in cls.MetaOapg.all_of():
+ discriminated_cls = allof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'one_of'):
+ for oneof_cls in cls.MetaOapg.one_of():
+ discriminated_cls = oneof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
+ if hasattr(cls.MetaOapg, 'any_of'):
+ for anyof_cls in cls.MetaOapg.any_of():
+ discriminated_cls = anyof_cls.get_discriminated_class_oapg(
+ disc_property_name=disc_property_name, disc_payload_value=disc_payload_value)
+ if discriminated_cls is not None:
+ return discriminated_cls
return None
@@ -1605,9 +1606,7 @@ class DictBase(Discriminable, ValidatorBase):
raise ApiTypeError('Unable to find schema for value={} in class={} at path_to_item={}'.format(
value, cls, validation_metadata.path_to_item+(property_name,)
))
- if isinstance(schema, classmethod):
- # referenced schema, call classmethod property
- schema = schema.__func__.fget(properties)
+ schema = cls._get_class_oapg(schema)
arg_validation_metadata = ValidationMetadata(
from_server=validation_metadata.from_server,
configuration=validation_metadata.configuration,
@@ -1678,7 +1677,7 @@ class DictBase(Discriminable, ValidatorBase):
other_path_to_schemas = cls.__validate_args(arg, validation_metadata=validation_metadata)
update(_path_to_schemas, other_path_to_schemas)
try:
- discriminator = cls.MetaOapg.discriminator
+ discriminator = cls.MetaOapg.discriminator()
except AttributeError:
return _path_to_schemas
# discriminator exists
@@ -1863,7 +1862,7 @@ class ComposedBase(Discriminable):
@classmethod
def __get_allof_classes(cls, arg, validation_metadata: ValidationMetadata):
path_to_schemas = defaultdict(set)
- for allof_cls in cls.MetaOapg.all_of:
+ for allof_cls in cls.MetaOapg.all_of():
if validation_metadata.validation_ran_earlier(allof_cls):
continue
other_path_to_schemas = allof_cls._validate_oapg(arg, validation_metadata=validation_metadata)
@@ -1879,7 +1878,7 @@ class ComposedBase(Discriminable):
):
oneof_classes = []
path_to_schemas = defaultdict(set)
- for oneof_cls in cls.MetaOapg.one_of:
+ for oneof_cls in cls.MetaOapg.one_of():
if oneof_cls in path_to_schemas[validation_metadata.path_to_item]:
oneof_classes.append(oneof_cls)
continue
@@ -1914,7 +1913,7 @@ class ComposedBase(Discriminable):
):
anyof_classes = []
path_to_schemas = defaultdict(set)
- for anyof_cls in cls.MetaOapg.any_of:
+ for anyof_cls in cls.MetaOapg.any_of():
if validation_metadata.validation_ran_earlier(anyof_cls):
anyof_classes.append(anyof_cls)
continue
@@ -2004,8 +2003,9 @@ class ComposedBase(Discriminable):
)
update(path_to_schemas, other_path_to_schemas)
not_cls = None
- if hasattr(cls, 'MetaOapg'):
- not_cls = getattr(cls.MetaOapg, 'not_schema', None)
+ if hasattr(cls, 'MetaOapg') and hasattr(cls.MetaOapg, 'not_schema'):
+ not_cls = cls.MetaOapg.not_schema
+ not_cls = cls._get_class_oapg(not_cls)
if not_cls:
other_path_to_schemas = None
not_exception = ApiValueError(
@@ -2374,10 +2374,12 @@ class BinarySchema(
BinaryMixin
):
class MetaOapg:
- one_of = [
- BytesSchema,
- FileSchema,
- ]
+ @staticmethod
+ def one_of():
+ return [
+ BytesSchema,
+ FileSchema,
+ ]
def __new__(cls, arg: typing.Union[io.FileIO, io.BufferedReader, bytes], **kwargs: Configuration):
return super().__new__(cls, arg)
@@ -2456,7 +2458,7 @@ class DictSchema(
schema_type_classes = {NoneSchema, DictSchema, ListSchema, NumberSchema, StrSchema, BoolSchema, AnyTypeSchema}
-@functools.cache
+@functools.lru_cache()
def get_new_class(
class_name: str,
bases: typing.Tuple[typing.Type[typing.Union[Schema, typing.Any]], ...]
diff --git a/samples/openapi3/client/petstore/python-experimental/setup.py b/samples/openapi3/client/petstore/python-experimental/setup.py
index c0194e5163..2acc6c1cf2 100644
--- a/samples/openapi3/client/petstore/python-experimental/setup.py
+++ b/samples/openapi3/client/petstore/python-experimental/setup.py
@@ -27,6 +27,7 @@ REQUIRES = [
"frozendict >= 2.0.3",
"pem>=19.3.0",
"pycryptodome>=3.9.0",
+ "typing_extensions",
]
setup(
@@ -37,7 +38,7 @@ setup(
author_email="team@openapitools.org",
url="",
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
- python_requires=">=3.9",
+ python_requires=">=3.7",
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/__init__.py
index 3d59208080..1309632d3d 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/__init__.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/__init__.py
@@ -41,7 +41,7 @@ class ApiTestMixin:
)
@staticmethod
- def headers_for_content_type(content_type: str) -> dict[str, str]:
+ def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:
return {'content-type': content_type}
@classmethod
@@ -50,7 +50,7 @@ class ApiTestMixin:
body: typing.Union[str, bytes],
status: int = 200,
content_type: str = json_content_type,
- headers: typing.Optional[dict[str, str]] = None,
+ headers: typing.Optional[typing.Dict[str, str]] = None,
preload_content: bool = True
) -> urllib3.HTTPResponse:
if headers is None:
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_3/test_delete.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_delete.py
similarity index 93%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_3/test_delete.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_delete.py
index 9c8b08305b..e36d03aabc 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_3/test_delete.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_delete.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.fake_3 import delete # noqa: E501
+from petstore_api.paths.fake import delete # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_2/test_get.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_get.py
similarity index 93%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_2/test_get.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_get.py
index ce46c593e4..f837d7deb2 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_2/test_get.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_get.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.fake_2 import get # noqa: E501
+from petstore_api.paths.fake import get # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_1/test_post.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_post.py
similarity index 93%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_1/test_post.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_post.py
index edaf8f6501..ed46831cc9 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_1/test_post.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake/test_post.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.fake_1 import post # noqa: E501
+from petstore_api.paths.fake import post # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_1/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_2/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_3/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_fake_3/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_2/test_put.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet/test_put.py
similarity index 93%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_2/test_put.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet/test_put.py
index 24c48f946c..903536c66d 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_2/test_put.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet/test_put.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.pet_2 import put # noqa: E501
+from petstore_api.paths.pet import put # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_2/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_1/test_get.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_get.py
similarity index 92%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_1/test_get.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_get.py
index 89b55e3141..78e02c339c 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_1/test_get.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_get.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.pet_pet_id_1 import get # noqa: E501
+from petstore_api.paths.pet_pet_id import get # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_3/test_post.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_post.py
similarity index 92%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_3/test_post.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_post.py
index 539cde9d2c..6c6c9e60ad 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_3/test_post.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id/test_post.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.pet_pet_id_3 import post # noqa: E501
+from petstore_api.paths.pet_pet_id import post # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_1/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_3/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_pet_pet_id_3/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id_1/test_get.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id/test_get.py
similarity index 91%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id_1/test_get.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id/test_get.py
index 221c4c2a83..55a5443d97 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id_1/test_get.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id/test_get.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.store_order_order_id_1 import get # noqa: E501
+from petstore_api.paths.store_order_order_id import get # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_store_order_order_id_1/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_1/test_get.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_get.py
similarity index 92%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_1/test_get.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_get.py
index a29f530015..c56b8bd1e4 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_1/test_get.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_get.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.user_username_1 import get # noqa: E501
+from petstore_api.paths.user_username import get # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_2/test_put.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_put.py
similarity index 92%
rename from samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_2/test_put.py
rename to samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_put.py
index b2a47635c2..6e94769a58 100644
--- a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_2/test_put.py
+++ b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username/test_put.py
@@ -12,7 +12,7 @@ from unittest.mock import patch
import urllib3
import petstore_api
-from petstore_api.paths.user_username_2 import put # noqa: E501
+from petstore_api.paths.user_username import put # noqa: E501
from petstore_api import configuration, schemas, api_client
from .. import ApiTestMixin
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_1/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_1/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_2/__init__.py b/samples/openapi3/client/petstore/python-experimental/test/test_paths/test_user_username_2/__init__.py
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/__init__.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/__init__.py
index 104cdf76ff..30c8b05d3f 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/__init__.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/__init__.py
@@ -20,7 +20,7 @@ class ApiTestMixin(unittest.TestCase):
method: str = 'POST',
body: typing.Optional[bytes] = None,
content_type: typing.Optional[str] = 'application/json',
- fields: typing.Optional[tuple[api_client.RequestField, ...]] = None,
+ fields: typing.Optional[typing.Tuple[api_client.RequestField, ...]] = None,
accept_content_type: typing.Optional[str] = 'application/json',
stream: bool = False,
):
@@ -77,7 +77,7 @@ class ApiTestMixin(unittest.TestCase):
)
@staticmethod
- def headers_for_content_type(content_type: str) -> dict[str, str]:
+ def headers_for_content_type(content_type: str) -> typing.Dict[str, str]:
return {'content-type': content_type}
@classmethod
@@ -86,7 +86,7 @@ class ApiTestMixin(unittest.TestCase):
body: typing.Union[str, bytes],
status: int = 200,
content_type: str = json_content_type,
- headers: typing.Optional[dict[str, str]] = None,
+ headers: typing.Optional[typing.Dict[str, str]] = None,
preload_content: bool = True
) -> urllib3.HTTPResponse:
if headers is None:
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_additional_properties_validator.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_additional_properties_validator.py
index 0410365a02..a54404c542 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_additional_properties_validator.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_additional_properties_validator.py
@@ -30,8 +30,8 @@ class TestAdditionalPropertiesValidator(unittest.TestCase):
assert add_prop == 'abc'
assert isinstance(add_prop, str)
assert isinstance(add_prop, schemas.AnyTypeSchema)
- assert isinstance(add_prop, AdditionalPropertiesValidator.MetaOapg.all_of[1].MetaOapg.additional_properties)
- assert isinstance(add_prop, AdditionalPropertiesValidator.MetaOapg.all_of[2].MetaOapg.additional_properties)
+ assert isinstance(add_prop, AdditionalPropertiesValidator.MetaOapg.all_of()[1].MetaOapg.additional_properties)
+ assert isinstance(add_prop, AdditionalPropertiesValidator.MetaOapg.all_of()[2].MetaOapg.additional_properties)
assert not isinstance(add_prop, schemas.UnsetAnyTypeSchema)
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_animal.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_animal.py
index f67158bca1..68bb19bd24 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_animal.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_animal.py
@@ -43,7 +43,7 @@ class TestAnimal(unittest.TestCase):
animal = Animal(className='Cat', color='black')
assert isinstance(animal, frozendict.frozendict)
assert isinstance(animal, Cat)
- assert isinstance(animal, Cat.MetaOapg.all_of[1])
+ assert isinstance(animal, Cat.MetaOapg.all_of()[1])
assert isinstance(animal, Animal)
assert set(animal.keys()) == {'className', 'color'}
assert animal.className == 'Cat'
@@ -56,7 +56,7 @@ class TestAnimal(unittest.TestCase):
assert isinstance(animal, Animal)
assert isinstance(animal, frozendict.frozendict)
assert isinstance(animal, Cat)
- assert isinstance(animal, Cat.MetaOapg.all_of[1])
+ assert isinstance(animal, Cat.MetaOapg.all_of()[1])
assert set(animal.keys()) == {'className', 'color', 'declawed'}
assert animal.className == 'Cat'
assert animal["color"] == 'black'
@@ -70,7 +70,7 @@ class TestAnimal(unittest.TestCase):
assert isinstance(animal, Animal)
assert isinstance(animal, frozendict.frozendict)
assert isinstance(animal, Dog)
- assert isinstance(animal, Dog.MetaOapg.all_of[1])
+ assert isinstance(animal, Dog.MetaOapg.all_of()[1])
assert set(animal.keys()) == {'className', 'color'}
assert animal.className == 'Dog'
assert animal["color"] == 'black'
@@ -82,7 +82,7 @@ class TestAnimal(unittest.TestCase):
assert isinstance(animal, Animal)
assert isinstance(animal, frozendict.frozendict)
assert isinstance(animal, Dog)
- assert isinstance(animal, Dog.MetaOapg.all_of[1])
+ assert isinstance(animal, Dog.MetaOapg.all_of()[1])
assert set(animal.keys()) == {'className', 'color', 'breed'}
assert animal.className == 'Dog'
assert animal["color"] == 'black'
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_any_type_schema.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_any_type_schema.py
index 160d783524..15f498bcc0 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_any_type_schema.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_any_type_schema.py
@@ -39,10 +39,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testDictSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- DictSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ DictSchema,
+ ]
m = Model(a=1, b='hi')
assert isinstance(m, Model)
@@ -54,10 +56,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testListSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- ListSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ ListSchema,
+ ]
m = Model([1, 'hi'])
assert isinstance(m, Model)
@@ -69,10 +73,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testStrSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- StrSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ StrSchema,
+ ]
m = Model('hi')
assert isinstance(m, Model)
@@ -84,10 +90,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testNumberSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- NumberSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ NumberSchema,
+ ]
m = Model(1)
assert isinstance(m, Model)
@@ -106,10 +114,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testIntSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- IntSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ IntSchema,
+ ]
m = Model(1)
assert isinstance(m, Model)
@@ -120,15 +130,17 @@ class TestAnyTypeSchema(unittest.TestCase):
with self.assertRaises(petstore_api.exceptions.ApiValueError):
# can't pass in float into Int
- m = Model(3.14)
+ Model(3.14)
def testBoolSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- BoolSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ BoolSchema,
+ ]
m = Model(True)
assert isinstance(m, Model)
@@ -147,25 +159,29 @@ class TestAnyTypeSchema(unittest.TestCase):
def testNoneSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- NoneSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ NoneSchema,
+ ]
m = Model(None)
+ self.assertTrue(m.is_none_oapg())
assert isinstance(m, Model)
assert isinstance(m, AnyTypeSchema)
assert isinstance(m, NoneSchema)
assert isinstance(m, NoneClass)
- self.assertTrue(m.is_none_oapg())
def testDateSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- DateSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ DateSchema,
+ ]
m = Model('1970-01-01')
assert isinstance(m, Model)
@@ -177,10 +193,12 @@ class TestAnyTypeSchema(unittest.TestCase):
def testDateTimeSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- DateTimeSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ DateTimeSchema,
+ ]
m = Model('2020-01-01T00:00:00')
assert isinstance(m, Model)
@@ -192,18 +210,20 @@ class TestAnyTypeSchema(unittest.TestCase):
def testDecimalSchema(self):
class Model(ComposedSchema):
class MetaOapg:
- all_of = [
- AnyTypeSchema,
- DecimalSchema,
- ]
+ @staticmethod
+ def all_of():
+ return [
+ AnyTypeSchema,
+ DecimalSchema,
+ ]
m = Model('12.34')
+ assert m == '12.34'
+ assert m.as_decimal_oapg == Decimal('12.34')
assert isinstance(m, Model)
assert isinstance(m, AnyTypeSchema)
assert isinstance(m, DecimalSchema)
assert isinstance(m, str)
- assert m == '12.34'
- assert m.as_decimal_oapg == Decimal('12.34')
if __name__ == '__main__':
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_combine_schemas.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_combine_schemas.py
index 403d9709f8..13e4ba88f9 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_combine_schemas.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_combine_schemas.py
@@ -32,13 +32,13 @@ class TestCombineNonObjectSchemas(unittest.TestCase):
class EnumPlusPrim(IntegerMax10, IntegerEnumOneValue):
pass
- assert EnumPlusPrim._enum_value_to_name == {0: "POSITIVE_0"}
+ assert EnumPlusPrim._enum_value_to_name() == {0: "POSITIVE_0"}
# order of base classes does not matter
class EnumPlusPrim(IntegerEnumOneValue, IntegerMax10):
pass
- assert EnumPlusPrim._enum_value_to_name == {0: "POSITIVE_0"}
+ assert EnumPlusPrim._enum_value_to_name() == {0: "POSITIVE_0"}
enum_value = EnumPlusPrim.POSITIVE_0
assert isinstance(enum_value, EnumPlusPrim)
@@ -62,13 +62,13 @@ class TestCombineNonObjectSchemas(unittest.TestCase):
class IntegerOneEnum(IntegerEnum, IntegerEnumOneValue):
pass
- assert IntegerOneEnum._enum_value_to_name == {0: "POSITIVE_0"}
+ assert IntegerOneEnum._enum_value_to_name() == {0: "POSITIVE_0"}
# order of base classes does not matter
class IntegerOneEnum(IntegerEnumOneValue, IntegerEnum):
pass
- assert IntegerOneEnum._enum_value_to_name == {0: "POSITIVE_0"}
+ assert IntegerOneEnum._enum_value_to_name() == {0: "POSITIVE_0"}
enum_value = IntegerOneEnum.POSITIVE_0
assert isinstance(enum_value, IntegerOneEnum)
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit.py
index 813102400c..6f1a226555 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit.py
@@ -55,7 +55,7 @@ class TestFruit(unittest.TestCase):
# make sure that the ModelComposed class properties are correct
self.assertEqual(
- Fruit.MetaOapg.one_of,
+ Fruit.MetaOapg.one_of(),
[
apple.Apple,
banana.Banana,
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit_req.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit_req.py
index 2564a57111..bdabb19364 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit_req.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_fruit_req.py
@@ -70,7 +70,7 @@ class TestFruitReq(unittest.TestCase):
# make sure that the ModelComposed class properties are correct
self.assertEqual(
- FruitReq.MetaOapg.one_of,
+ FruitReq.MetaOapg.one_of(),
[
schemas.NoneSchema,
apple_req.AppleReq,
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_gm_fruit.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_gm_fruit.py
index de79d6488f..ad650460a4 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_gm_fruit.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_gm_fruit.py
@@ -70,7 +70,7 @@ class TestGmFruit(unittest.TestCase):
# make sure that the ModelComposed class properties are correct
self.assertEqual(
- GmFruit.MetaOapg.any_of,
+ GmFruit.MetaOapg.any_of(),
[
apple.Apple,
banana.Banana,
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_object_model_with_ref_props.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_object_model_with_ref_props.py
index cd5ded5a67..42fc674cd2 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_object_model_with_ref_props.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_object_model_with_ref_props.py
@@ -29,8 +29,6 @@ class TestObjectModelWithRefProps(unittest.TestCase):
def testObjectModelWithRefProps(self):
"""Test ObjectModelWithRefProps"""
- self.assertEqual(ObjectModelWithRefProps.MetaOapg.properties.myNumber, NumberWithValidations)
-
inst = ObjectModelWithRefProps(myNumber=15.0, myString="a", myBoolean=True)
assert isinstance(inst, ObjectModelWithRefProps)
assert isinstance(inst, frozendict.frozendict)
diff --git a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_validate.py b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_validate.py
index 3ff2273f3a..4a61f9c7f9 100644
--- a/samples/openapi3/client/petstore/python-experimental/tests_manual/test_validate.py
+++ b/samples/openapi3/client/petstore/python-experimental/tests_manual/test_validate.py
@@ -101,7 +101,7 @@ class TestValidateResults(unittest.TestCase):
for path, schema_classes in path_to_schemas.items():
Animal._process_schema_classes_oapg(schema_classes)
assert path_to_schemas == {
- ("args[0]",): {Animal, Dog, Dog.MetaOapg.all_of[1], frozendict.frozendict},
+ ("args[0]",): {Animal, Dog, Dog.MetaOapg.all_of()[1], frozendict.frozendict},
("args[0]", "className"): {StrSchema, str},
("args[0]", "color"): {StrSchema, str},
}
diff --git a/samples/openapi3/client/petstore/python-experimental/tox.ini b/samples/openapi3/client/petstore/python-experimental/tox.ini
index ef7cec358c..e57c17e10c 100644
--- a/samples/openapi3/client/petstore/python-experimental/tox.ini
+++ b/samples/openapi3/client/petstore/python-experimental/tox.ini
@@ -1,7 +1,8 @@
[tox]
-envlist = py39
+envlist = py37
[testenv]
+passenv = PYTHON_VERSION
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt