forked from loafle/openapi-generator-original
[python-experimental] reduces python version (#13481)
* Removes classmethod property combinations * Changes python version to 3.8 * Changes python version to 3.7 * Tests fixed * Samples updated * Adds getAddSuffixToDuplicateOperationNickname and uses it in python-exp, samples regenerated * test_paths regenerated * Fixes bug * Adds typing_extensions requirement
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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__(
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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")
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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")
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import 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)
|
||||
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
@@ -15,6 +15,7 @@ import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user