forked from loafle/openapi-generator-original
[python-experimental] adds NullableX base class mixins, fixes additionalProperties type hint (#13323)
* Makes additionalProperties type hint include Unset * Adds 2-class Mixins * unit test sample regenerated * Reverts version files
This commit is contained in:
parent
7af9f9c7e7
commit
225204093f
@ -39,7 +39,7 @@ def __getitem__(self, name: typing.Literal["{{{baseName}}}"]) -> typing.Union[Me
|
||||
{{#or vars getRequiredVarsMap}}
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> {{#with additionalProperties}}{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/with}}: ...
|
||||
def __getitem__(self, name: str) -> {{#with additionalProperties}}typing.Union[{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}, schemas.Unset]{{/with}}: ...
|
||||
{{/or}}
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, {{#each getRequiredVarsMap}}{{#with this}}typing.Literal["{{{baseName}}}"], {{/with}}{{/each}}{{#each vars}}{{#unless required}}typing.Literal["{{{baseName}}}"], {{/unless}}{{/each}}]){{#not vars}}{{#not getRequiredVarsMap}} -> {{#with additionalProperties}}{{#if complexType}}'{{complexType}}'{{else}}MetaOapg.{{baseName}}{{/if}}{{/with}}{{/not}}{{/not}}:
|
||||
|
@ -9,7 +9,7 @@ class {{#if this.classname}}{{classname}}{{else}}{{#if nameInSnakeCase}}{{name}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if getHasMultipleTypes}}
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isArray}}tuple, {{/if}}{{#if isMap}}frozendict.frozendict, {{/if}}{{#if isNull}}schemas.NoneClass, {{/if}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}decimal.Decimal, {{/or}}{{#or isString isByteArray isDate isDateTime isDecimal}}str, {{/or}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]),
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[{{#if isNull}}schemas.NoneClass, {{/if}}{{#if isMap}}frozendict.frozendict, {{/if}}{{#if isArray}}tuple, {{/if}}{{#or isString isByteArray isDate isDateTime isDecimal}}str, {{/or}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}decimal.Decimal, {{/or}}{{#if isBoolean}}schemas.BoolClass, {{/if}}]),
|
||||
{{/if}}
|
||||
{{#if composedSchemas}}
|
||||
schemas.ComposedBase,
|
||||
|
@ -50,5 +50,6 @@ schemas.Binary{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
schemas.None{{#if getHasMultipleTypes}}Base,{{else}}Schema{{/if}}
|
||||
{{/if}}
|
||||
{{#if getHasMultipleTypes}}
|
||||
schemas.Schema
|
||||
schemas.Schema,
|
||||
schemas.{{#if isNull}}None{{/if}}{{#if isMap}}FrozenDict{{/if}}{{#if isArray}}Tuple{{/if}}{{#or isString isByteArray isDate isDateTime isDecimal}}Str{{/or}}{{#or isUnboundedInteger isShort isLong isFloat isDouble isNumber}}Decimal{{/or}}{{#if isBoolean}}Bool{{/if}}Mixin
|
||||
{{/if}}
|
||||
|
@ -478,20 +478,78 @@ class Schema:
|
||||
"""
|
||||
pass
|
||||
|
||||
"""
|
||||
import itertools
|
||||
data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool')
|
||||
[v for v in itertools.combinations(data_types, 2)]
|
||||
"""
|
||||
if typing.TYPE_CHECKING:
|
||||
# qty 1 mixin
|
||||
NoneMixin = NoneClass
|
||||
FrozenDictMixin = frozendict.frozendict
|
||||
TupleMixin = tuple
|
||||
StrMixin = str
|
||||
DecimalMixin = decimal.Decimal
|
||||
BoolMixin = BoolClass
|
||||
NoneMixin = NoneClass
|
||||
TupleMixin = tuple
|
||||
FrozenDictMixin = frozendict.frozendict
|
||||
# qty 2 mixin
|
||||
class NoneFrozenDictMixin(NoneClass, frozendict.frozendict):
|
||||
pass
|
||||
class NoneTupleMixin(NoneClass, tuple):
|
||||
pass
|
||||
class NoneStrMixin(NoneClass, str):
|
||||
pass
|
||||
class NoneDecimalMixin(NoneClass, decimal.Decimal):
|
||||
pass
|
||||
class NoneBoolMixin(NoneClass, bool):
|
||||
passs
|
||||
class FrozenDictTupleMixin(frozendict.frozendict, tuple):
|
||||
pass
|
||||
class FrozenDictStrMixin(frozendict.frozendict, str):
|
||||
pass
|
||||
class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal):
|
||||
pass
|
||||
class FrozenDictBoolMixin(frozendict.frozendict, bool):
|
||||
pass
|
||||
class TupleStrMixin(tuple, str):
|
||||
pass
|
||||
class TupleDecimalMixin(tuple, decimal.Decimal):
|
||||
pass
|
||||
class TupleBoolMixin(tuple, bool):
|
||||
pass
|
||||
class StrDecimalMixin(str, decimal.Decimal):
|
||||
pass
|
||||
class StrBoolMixin(str, bool):
|
||||
pass
|
||||
class DecimalBoolMixin(decimal.Decimal, bool):
|
||||
pass
|
||||
# qty 6
|
||||
class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, bool):
|
||||
pass
|
||||
else:
|
||||
# qty 1 mixin
|
||||
NoneMixin = object
|
||||
FrozenDictMixin = object
|
||||
TupleMixin = object
|
||||
StrMixin = object
|
||||
DecimalMixin = object
|
||||
BoolMixin = object
|
||||
NoneMixin = object
|
||||
TupleMixin = object
|
||||
FrozenDictMixin = object
|
||||
# qty 2 mixin
|
||||
NoneFrozenDictMixin = object
|
||||
NoneTupleMixin = object
|
||||
NoneStrMixin = object
|
||||
NoneDecimalMixin = object
|
||||
NoneBoolMixin = object
|
||||
FrozenDictTupleMixin = object
|
||||
FrozenDictStrMixin = object
|
||||
FrozenDictDecimalMixin = object
|
||||
FrozenDictBoolMixin = object
|
||||
TupleStrMixin = object
|
||||
TupleDecimalMixin = object
|
||||
TupleBoolMixin = object
|
||||
StrDecimalMixin = object
|
||||
StrBoolMixin = object
|
||||
DecimalBoolMixin = object
|
||||
NoneFrozenDictTupleStrDecimalBoolMixin = object
|
||||
|
||||
|
||||
class ValidatorBase:
|
||||
@ -2077,7 +2135,8 @@ class AnyTypeSchema(
|
||||
StrBase,
|
||||
BoolBase,
|
||||
NoneBase,
|
||||
Schema
|
||||
Schema,
|
||||
NoneFrozenDictTupleStrDecimalBoolMixin
|
||||
):
|
||||
pass
|
||||
|
||||
|
@ -52,7 +52,7 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -52,7 +52,7 @@ class AdditionalpropertiesAllowsASchemaWhichShouldValidate(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -53,7 +53,7 @@ class AdditionalpropertiesAreAllowedByDefault(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -53,7 +53,7 @@ class AdditionalpropertiesAreAllowedByDefault(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -56,7 +56,7 @@ class AdditionalpropertiesShouldNotLookInApplicators(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -56,7 +56,7 @@ class AdditionalpropertiesShouldNotLookInApplicators(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class Allof(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class Allof(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class Allof(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class Allof(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -67,7 +67,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -117,7 +117,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["baz"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -166,7 +166,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -67,7 +67,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -117,7 +117,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.properties.baz: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["baz"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -166,7 +166,7 @@ class AllofWithBaseSchema(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class AnyofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class AnyofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class AnyofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class AnyofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -83,7 +83,7 @@ class EnumsInProperties(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -83,7 +83,7 @@ class EnumsInProperties(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -79,7 +79,7 @@ class ForbiddenProperty(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -79,7 +79,7 @@ class ForbiddenProperty(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class InvalidStringValueForDefault(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -52,7 +52,7 @@ class InvalidStringValueForDefault(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class NotMoreComplexSchema(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class NotMoreComplexSchema(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -53,7 +53,7 @@ class ObjectPropertiesValidation(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -53,7 +53,7 @@ class ObjectPropertiesValidation(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class OneofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class OneofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -59,7 +59,7 @@ class OneofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> MetaOapg.properties.bar: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -109,7 +109,7 @@ class OneofComplexTypes(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.properties.foo: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -60,7 +60,7 @@ class OneofWithRequired(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -108,7 +108,7 @@ class OneofWithRequired(
|
||||
def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["baz"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -60,7 +60,7 @@ class OneofWithRequired(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["bar"], typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
@ -108,7 +108,7 @@ class OneofWithRequired(
|
||||
def __getitem__(self, name: typing.Literal["baz"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["baz"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -71,7 +71,7 @@ class PropertiesWithEscapedCharacters(
|
||||
def __getitem__(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\nbar"], typing.Literal["foo\"bar"], typing.Literal["foo\\bar"], typing.Literal["foo\rbar"], typing.Literal["foo\tbar"], typing.Literal["foo\fbar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -71,7 +71,7 @@ class PropertiesWithEscapedCharacters(
|
||||
def __getitem__(self, name: typing.Literal["foo\fbar"]) -> typing.Union[MetaOapg.properties.foo_fbar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\nbar"], typing.Literal["foo\"bar"], typing.Literal["foo\\bar"], typing.Literal["foo\rbar"], typing.Literal["foo\tbar"], typing.Literal["foo\fbar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -46,7 +46,7 @@ class PropertyNamedRefThatIsNotAReference(
|
||||
def __getitem__(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["$ref"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -46,7 +46,7 @@ class PropertyNamedRefThatIsNotAReference(
|
||||
def __getitem__(self, name: typing.Literal["$ref"]) -> typing.Union[MetaOapg.properties.ref, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["$ref"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -51,7 +51,7 @@ class RefInProperty(
|
||||
def __getitem__(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -51,7 +51,7 @@ class RefInProperty(
|
||||
def __getitem__(self, name: typing.Literal["a"]) -> typing.Union['PropertyNamedRefThatIsNotAReference', schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["a"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -47,7 +47,7 @@ class RequiredDefaultValidation(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -47,7 +47,7 @@ class RequiredDefaultValidation(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -56,7 +56,7 @@ class RequiredValidation(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -56,7 +56,7 @@ class RequiredValidation(
|
||||
def __getitem__(self, name: typing.Literal["bar"]) -> typing.Union[MetaOapg.properties.bar, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], typing.Literal["bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -47,7 +47,7 @@ class RequiredWithEmptyArray(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -47,7 +47,7 @@ class RequiredWithEmptyArray(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -64,7 +64,7 @@ class RequiredWithEscapedCharacters(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -64,7 +64,7 @@ class RequiredWithEscapedCharacters(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -54,7 +54,7 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
|
||||
def __getitem__(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["alpha"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -51,7 +51,7 @@ class TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissing(
|
||||
def __getitem__(self, name: typing.Literal["alpha"]) -> typing.Union[MetaOapg.properties.alpha, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["alpha"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -56,7 +56,7 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -54,7 +54,7 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -65,7 +65,7 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -63,7 +63,7 @@ class SchemaForRequestBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -53,7 +53,7 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo"]) -> typing.Union[MetaOapg.properties.foo, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -64,7 +64,7 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -62,7 +62,7 @@ class SchemaFor200ResponseBodyApplicationJson(
|
||||
def __getitem__(self, name: typing.Literal["foo\\\\bar"]) -> MetaOapg.additional_properties: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["foo\\\"bar"], typing.Literal["foo\\nbar"], typing.Literal["foo\\fbar"], typing.Literal["foo\\tbar"], typing.Literal["foo\\rbar"], typing.Literal["foo\\\\bar"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -485,20 +485,78 @@ class Schema:
|
||||
"""
|
||||
pass
|
||||
|
||||
"""
|
||||
import itertools
|
||||
data_types = ('None', 'FrozenDict', 'Tuple', 'Str', 'Decimal', 'Bool')
|
||||
[v for v in itertools.combinations(data_types, 2)]
|
||||
"""
|
||||
if typing.TYPE_CHECKING:
|
||||
# qty 1 mixin
|
||||
NoneMixin = NoneClass
|
||||
FrozenDictMixin = frozendict.frozendict
|
||||
TupleMixin = tuple
|
||||
StrMixin = str
|
||||
DecimalMixin = decimal.Decimal
|
||||
BoolMixin = BoolClass
|
||||
NoneMixin = NoneClass
|
||||
TupleMixin = tuple
|
||||
FrozenDictMixin = frozendict.frozendict
|
||||
# qty 2 mixin
|
||||
class NoneFrozenDictMixin(NoneClass, frozendict.frozendict):
|
||||
pass
|
||||
class NoneTupleMixin(NoneClass, tuple):
|
||||
pass
|
||||
class NoneStrMixin(NoneClass, str):
|
||||
pass
|
||||
class NoneDecimalMixin(NoneClass, decimal.Decimal):
|
||||
pass
|
||||
class NoneBoolMixin(NoneClass, bool):
|
||||
passs
|
||||
class FrozenDictTupleMixin(frozendict.frozendict, tuple):
|
||||
pass
|
||||
class FrozenDictStrMixin(frozendict.frozendict, str):
|
||||
pass
|
||||
class FrozenDictDecimalMixin(frozendict.frozendict, decimal.Decimal):
|
||||
pass
|
||||
class FrozenDictBoolMixin(frozendict.frozendict, bool):
|
||||
pass
|
||||
class TupleStrMixin(tuple, str):
|
||||
pass
|
||||
class TupleDecimalMixin(tuple, decimal.Decimal):
|
||||
pass
|
||||
class TupleBoolMixin(tuple, bool):
|
||||
pass
|
||||
class StrDecimalMixin(str, decimal.Decimal):
|
||||
pass
|
||||
class StrBoolMixin(str, bool):
|
||||
pass
|
||||
class DecimalBoolMixin(decimal.Decimal, bool):
|
||||
pass
|
||||
# qty 6
|
||||
class NoneFrozenDictTupleStrDecimalBoolMixin(NoneClass, frozendict.frozendict, tuple, str, decimal.Decimal, bool):
|
||||
pass
|
||||
else:
|
||||
# qty 1 mixin
|
||||
NoneMixin = object
|
||||
FrozenDictMixin = object
|
||||
TupleMixin = object
|
||||
StrMixin = object
|
||||
DecimalMixin = object
|
||||
BoolMixin = object
|
||||
NoneMixin = object
|
||||
TupleMixin = object
|
||||
FrozenDictMixin = object
|
||||
# qty 2 mixin
|
||||
NoneFrozenDictMixin = object
|
||||
NoneTupleMixin = object
|
||||
NoneStrMixin = object
|
||||
NoneDecimalMixin = object
|
||||
NoneBoolMixin = object
|
||||
FrozenDictTupleMixin = object
|
||||
FrozenDictStrMixin = object
|
||||
FrozenDictDecimalMixin = object
|
||||
FrozenDictBoolMixin = object
|
||||
TupleStrMixin = object
|
||||
TupleDecimalMixin = object
|
||||
TupleBoolMixin = object
|
||||
StrDecimalMixin = object
|
||||
StrBoolMixin = object
|
||||
DecimalBoolMixin = object
|
||||
NoneFrozenDictTupleStrDecimalBoolMixin = object
|
||||
|
||||
|
||||
class ValidatorBase:
|
||||
@ -2084,7 +2142,8 @@ class AnyTypeSchema(
|
||||
StrBase,
|
||||
BoolBase,
|
||||
NoneBase,
|
||||
Schema
|
||||
Schema,
|
||||
NoneFrozenDictTupleStrDecimalBoolMixin
|
||||
):
|
||||
pass
|
||||
|
||||
|
@ -227,7 +227,7 @@ class AdditionalPropertiesClass(
|
||||
def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["map_property"], typing.Literal["map_of_map_property"], typing.Literal["anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_2"], typing.Literal["map_with_undeclared_properties_anytype_3"], typing.Literal["empty_map"], typing.Literal["map_with_undeclared_properties_string"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -227,7 +227,7 @@ class AdditionalPropertiesClass(
|
||||
def __getitem__(self, name: typing.Literal["map_with_undeclared_properties_string"]) -> typing.Union[MetaOapg.properties.map_with_undeclared_properties_string, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["map_property"], typing.Literal["map_of_map_property"], typing.Literal["anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_1"], typing.Literal["map_with_undeclared_properties_anytype_2"], typing.Literal["map_with_undeclared_properties_anytype_3"], typing.Literal["empty_map"], typing.Literal["map_with_undeclared_properties_string"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -65,7 +65,7 @@ class Animal(
|
||||
def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["color"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -65,7 +65,7 @@ class Animal(
|
||||
def __getitem__(self, name: typing.Literal["color"]) -> typing.Union[MetaOapg.properties.color, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], typing.Literal["color"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -58,7 +58,7 @@ class ApiResponse(
|
||||
def __getitem__(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["code"], typing.Literal["type"], typing.Literal["message"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -58,7 +58,7 @@ class ApiResponse(
|
||||
def __getitem__(self, name: typing.Literal["message"]) -> typing.Union[MetaOapg.properties.message, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["code"], typing.Literal["type"], typing.Literal["message"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -23,10 +23,11 @@ from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Apple(
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]),
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]),
|
||||
schemas.DictBase,
|
||||
schemas.NoneBase,
|
||||
schemas.Schema
|
||||
schemas.Schema,
|
||||
schemas.NoneFrozenDictMixin
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -82,7 +83,7 @@ class Apple(
|
||||
def __getitem__(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["cultivar"], typing.Literal["origin"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -23,10 +23,11 @@ from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class Apple(
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[frozendict.frozendict, schemas.NoneClass, ]),
|
||||
schemas.SchemaTypeCheckerClsFactory(typing.Union[schemas.NoneClass, frozendict.frozendict, ]),
|
||||
schemas.DictBase,
|
||||
schemas.NoneBase,
|
||||
schemas.Schema
|
||||
schemas.Schema,
|
||||
schemas.NoneFrozenDictMixin
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
@ -69,7 +70,7 @@ class Apple(
|
||||
def __getitem__(self, name: typing.Literal["origin"]) -> typing.Union[MetaOapg.properties.origin, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["cultivar"], typing.Literal["origin"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -90,7 +90,7 @@ class ArrayOfArrayOfNumberOnly(
|
||||
def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayArrayNumber"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -90,7 +90,7 @@ class ArrayOfArrayOfNumberOnly(
|
||||
def __getitem__(self, name: typing.Literal["ArrayArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayArrayNumber, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayArrayNumber"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -68,7 +68,7 @@ class ArrayOfNumberOnly(
|
||||
def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayNumber"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -68,7 +68,7 @@ class ArrayOfNumberOnly(
|
||||
def __getitem__(self, name: typing.Literal["ArrayNumber"]) -> typing.Union[MetaOapg.properties.ArrayNumber, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["ArrayNumber"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -172,7 +172,7 @@ class ArrayTest(
|
||||
def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["array_of_string"], typing.Literal["array_array_of_integer"], typing.Literal["array_array_of_model"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -172,7 +172,7 @@ class ArrayTest(
|
||||
def __getitem__(self, name: typing.Literal["array_array_of_model"]) -> typing.Union[MetaOapg.properties.array_array_of_model, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["array_of_string"], typing.Literal["array_array_of_integer"], typing.Literal["array_array_of_model"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -49,7 +49,7 @@ class Banana(
|
||||
def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["lengthCm"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -49,7 +49,7 @@ class Banana(
|
||||
def __getitem__(self, name: typing.Literal["lengthCm"]) -> MetaOapg.properties.lengthCm: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["lengthCm"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -63,7 +63,7 @@ class BasquePig(
|
||||
def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -63,7 +63,7 @@ class BasquePig(
|
||||
def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -76,7 +76,7 @@ class Capitalization(
|
||||
def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["smallCamel"], typing.Literal["CapitalCamel"], typing.Literal["small_Snake"], typing.Literal["Capital_Snake"], typing.Literal["SCA_ETH_Flow_Points"], typing.Literal["ATT_NAME"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -76,7 +76,7 @@ class Capitalization(
|
||||
def __getitem__(self, name: typing.Literal["ATT_NAME"]) -> typing.Union[MetaOapg.properties.ATT_NAME, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["smallCamel"], typing.Literal["CapitalCamel"], typing.Literal["small_Snake"], typing.Literal["Capital_Snake"], typing.Literal["SCA_ETH_Flow_Points"], typing.Literal["ATT_NAME"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Cat(
|
||||
def __getitem__(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["declawed"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Cat(
|
||||
def __getitem__(self, name: typing.Literal["declawed"]) -> typing.Union[MetaOapg.properties.declawed, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["declawed"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Category(
|
||||
def __getitem__(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["id"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Category(
|
||||
def __getitem__(self, name: typing.Literal["id"]) -> typing.Union[MetaOapg.properties.id, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["name"], typing.Literal["id"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class ChildCat(
|
||||
def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["name"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class ChildCat(
|
||||
def __getitem__(self, name: typing.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["name"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -49,7 +49,7 @@ class ClassModel(
|
||||
def __getitem__(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["_class"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -49,7 +49,7 @@ class ClassModel(
|
||||
def __getitem__(self, name: typing.Literal["_class"]) -> typing.Union[MetaOapg.properties._class, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["_class"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -46,7 +46,7 @@ class Client(
|
||||
def __getitem__(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["client"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -46,7 +46,7 @@ class Client(
|
||||
def __getitem__(self, name: typing.Literal["client"]) -> typing.Union[MetaOapg.properties.client, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["client"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -69,7 +69,7 @@ class ComplexQuadrilateral(
|
||||
def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -69,7 +69,7 @@ class ComplexQuadrilateral(
|
||||
def __getitem__(self, name: typing.Literal["quadrilateralType"]) -> typing.Union[MetaOapg.properties.quadrilateralType, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["quadrilateralType"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -63,7 +63,7 @@ class DanishPig(
|
||||
def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -63,7 +63,7 @@ class DanishPig(
|
||||
def __getitem__(self, name: typing.Literal["className"]) -> MetaOapg.properties.className: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["className"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Dog(
|
||||
def __getitem__(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["breed"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -55,7 +55,7 @@ class Dog(
|
||||
def __getitem__(self, name: typing.Literal["breed"]) -> typing.Union[MetaOapg.properties.breed, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["breed"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -106,7 +106,7 @@ class Drawing(
|
||||
def __getitem__(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> 'Fruit': ...
|
||||
def __getitem__(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -106,7 +106,7 @@ class Drawing(
|
||||
def __getitem__(self, name: typing.Literal["shapes"]) -> typing.Union[MetaOapg.properties.shapes, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> 'Fruit': ...
|
||||
def __getitem__(self, name: str) -> typing.Union['Fruit', schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["mainShape"], typing.Literal["shapeOrNull"], typing.Literal["nullableShape"], typing.Literal["shapes"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -114,7 +114,7 @@ class EnumArrays(
|
||||
def __getitem__(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["just_symbol"], typing.Literal["array_enum"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -114,7 +114,7 @@ class EnumArrays(
|
||||
def __getitem__(self, name: typing.Literal["array_enum"]) -> typing.Union[MetaOapg.properties.array_enum, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["just_symbol"], typing.Literal["array_enum"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -209,7 +209,7 @@ class EnumTest(
|
||||
def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["enum_string_required"], typing.Literal["enum_string"], typing.Literal["enum_integer"], typing.Literal["enum_number"], typing.Literal["stringEnum"], typing.Literal["IntegerEnum"], typing.Literal["StringEnumWithDefaultValue"], typing.Literal["IntegerEnumWithDefaultValue"], typing.Literal["IntegerEnumOneValue"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -209,7 +209,7 @@ class EnumTest(
|
||||
def __getitem__(self, name: typing.Literal["IntegerEnumOneValue"]) -> typing.Union['IntegerEnumOneValue', schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["enum_string_required"], typing.Literal["enum_string"], typing.Literal["enum_integer"], typing.Literal["enum_number"], typing.Literal["stringEnum"], typing.Literal["IntegerEnum"], typing.Literal["StringEnumWithDefaultValue"], typing.Literal["IntegerEnumWithDefaultValue"], typing.Literal["IntegerEnumOneValue"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -69,7 +69,7 @@ class EquilateralTriangle(
|
||||
def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -69,7 +69,7 @@ class EquilateralTriangle(
|
||||
def __getitem__(self, name: typing.Literal["triangleType"]) -> typing.Union[MetaOapg.properties.triangleType, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["triangleType"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
@ -48,7 +48,7 @@ class File(
|
||||
def __getitem__(self, name: typing.Literal["sourceURI"]) -> typing.Union[MetaOapg.properties.sourceURI, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> MetaOapg.additional_properties: ...
|
||||
def __getitem__(self, name: str) -> typing.Union[MetaOapg.additional_properties, schemas.Unset]: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[str, typing.Literal["sourceURI"], ]):
|
||||
# dict_instance[name] accessor
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user