Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Key | Type | Description | Notes

## AdditionalpropertiesAllowsASchemaWhichShouldValidateDict
```
base class: schemas.immutabledict[str, bool]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Key | Type | Description | Notes

## _0Dict
```
base class: schemas.immutabledict[str, int]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down Expand Up @@ -78,7 +78,7 @@ Key | Type | Description | Notes

## _1Dict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Key | Type | Description | Notes

## AllofWithBaseSchemaDict
```
base class: schemas.immutabledict[str, int]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down Expand Up @@ -68,7 +68,7 @@ Key | Type | Description | Notes

## _0Dict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down Expand Up @@ -109,7 +109,7 @@ Key | Type | Description | Notes

## _1Dict
```
base class: schemas.immutabledict[str, None]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Key | Type | Description | Notes

## _0Dict
```
base class: schemas.immutabledict[str, int]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down Expand Up @@ -78,7 +78,7 @@ Key | Type | Description | Notes

## _1Dict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Key | Type | Description | Notes

## EnumsInPropertiesDict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Key | Type | Description | Notes
## ForbiddenPropertyDict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Key | Type | Description | Notes

## InvalidStringValueForDefaultDict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Key | Type | Description | Notes

## NotDict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Key | Type | Description | Notes

## _0Dict
```
base class: schemas.immutabledict[str, int]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down Expand Up @@ -78,7 +78,7 @@ Key | Type | Description | Notes

## _1Dict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Key | Type | Description | Notes
## _0Dict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand Down Expand Up @@ -82,6 +83,7 @@ Key | Type | Description | Notes
## _1Dict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Key | Type | Description | Notes

## PropertiesWithEscapedCharactersDict
```
base class: schemas.immutabledict[str, typing.Union[int, float]]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand All @@ -37,7 +37,7 @@ Keyword Argument | Type | Description | Notes
Method | Input Type | Return Type | Notes
------ | ---------- | ----------- | ------
from_dict_ | [PropertiesWithEscapedCharactersDictInput](#propertieswithescapedcharactersdictinput), [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertiesWithEscapedCharactersDict](#propertieswithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor
__getitem__ | str | float, int | This model has invalid python names so this method is used under the hood when you access instance["foo\nbar"], instance["foo\"bar"], instance["foo\\bar"], instance["foo\rbar"], instance["foo\tbar"], instance["foo\fbar"],
__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["foo\nbar"], instance["foo\"bar"], instance["foo\\bar"], instance["foo\rbar"], instance["foo\tbar"], instance["foo\fbar"],
get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties

[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Key | Type | Description | Notes

## PropertyNamedRefThatIsNotAReferenceDict
```
base class: schemas.immutabledict[str, str]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand All @@ -32,7 +32,7 @@ Keyword Argument | Type | Description | Notes
Method | Input Type | Return Type | Notes
------ | ---------- | ----------- | ------
from_dict_ | [PropertyNamedRefThatIsNotAReferenceDictInput](#propertynamedrefthatisnotareferencedictinput), [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [PropertyNamedRefThatIsNotAReferenceDict](#propertynamedrefthatisnotareferencedict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor
__getitem__ | str | str | This model has invalid python names so this method is used under the hood when you access instance["$ref"],
__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["$ref"],
get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties

[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Key | Type | Description | Notes
## RefInAdditionalpropertiesDict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Key | Type | Description | Notes
## RefInPropertyDict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Key | Type | Description | Notes
## RequiredWithEscapedCharactersDict
```
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Keyword Argument | Type | Description | Notes
Expand All @@ -36,7 +37,7 @@ Keyword Argument | Type | Description | Notes
Method | Input Type | Return Type | Notes
------ | ---------- | ----------- | ------
from_dict_ | [RequiredWithEscapedCharactersDictInput](#requiredwithescapedcharactersdictinput), [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, datetime.date, datetime.datetime, uuid.UUID, int, float, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader | [RequiredWithEscapedCharactersDict](#requiredwithescapedcharactersdict), str, float, int, bool, None, tuple, bytes, io.FileIO | a constructor
__getitem__ | str | schemas.OUTPUT_BASE_TYPES | This model has invalid python names so this method is used under the hood when you access instance["foo\tbar"], instance["foo\nbar"], instance["foo\fbar"], instance["foo\rbar"], instance["foo\"bar"], instance["foo\\bar"],
__getitem__ | str | schemas.immutabledict, str, float, int, bool, None, tuple, bytes, io.FileIO | This model has invalid python names so this method is used under the hood when you access instance["foo\tbar"], instance["foo\nbar"], instance["foo\fbar"], instance["foo\rbar"], instance["foo\"bar"], instance["foo\\bar"],
get_additional_property_ | str | schemas.immutabledict, tuple, float, int, str, bool, None, bytes, schemas.FileIO, schemas.Unset }} | provides type safety for additional properties

[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Key | Type | Description | Notes

## TheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingDict
```
base class: schemas.immutabledict[str, typing.Union[int, float]]
base class: schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]

```
### __new__ method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,15 @@
from unit_test_api import schemas


@dataclasses.dataclass(frozen=True)
class ApiResponse:
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: typing.Union[schemas.Unset, schemas.OUTPUT_BASE_TYPES] = schemas.unset,
headers: typing.Union[schemas.Unset, typing.Mapping[str, schemas.OUTPUT_BASE_TYPES]] = schemas.unset
):
self.response = response
self.body = body
self. headers = headers
response: urllib3.HTTPResponse
body: typing.Union[schemas.Unset, schemas.OUTPUT_BASE_TYPES]
headers: typing.Union[schemas.Unset, typing.Mapping[str, schemas.OUTPUT_BASE_TYPES]]


@dataclasses.dataclass(frozen=True)
class ApiResponseWithoutDeserialization(ApiResponse):
def __init__(
self,
*,
response: urllib3.HTTPResponse,
body: schemas.Unset = schemas.unset,
headers: schemas.Unset = schemas.unset
):
self.response = response
self.body = body
self. headers = headers
response: urllib3.HTTPResponse
body: schemas.Unset = schemas.unset
headers: schemas.Unset = schemas.unset
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)


class AdditionalpropertiesAllowsASchemaWhichShouldValidateDict(schemas.immutabledict[str, bool]):
class AdditionalpropertiesAllowsASchemaWhichShouldValidateDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
})
Expand Down Expand Up @@ -74,20 +74,14 @@ def foo(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
val = self.get("foo", schemas.unset)
if isinstance(val, schemas.Unset):
return val
return typing.cast(
schemas.OUTPUT_BASE_TYPES,
val
)
return val

@property
def bar(self) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
val = self.get("bar", schemas.unset)
if isinstance(val, schemas.Unset):
return val
return typing.cast(
schemas.OUTPUT_BASE_TYPES,
val
)
return val

def get_additional_property_(self, name: str) -> typing.Union[bool, schemas.Unset]:
schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)


class _0Dict(schemas.immutabledict[str, int]):
class _0Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"bar",
Expand Down Expand Up @@ -91,7 +91,7 @@ class _0(
)


class _1Dict(schemas.immutabledict[str, str]):
class _1Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"foo",
Expand Down Expand Up @@ -125,7 +125,10 @@ def from_dict_(

@property
def foo(self) -> str:
return self.__getitem__("foo")
return typing.cast(
str,
self.__getitem__("foo")
)

def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)


class _0Dict(schemas.immutabledict[str, str]):
class _0Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"foo",
Expand Down Expand Up @@ -53,7 +53,10 @@ def from_dict_(

@property
def foo(self) -> str:
return self.__getitem__("foo")
return typing.cast(
str,
self.__getitem__("foo")
)

def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__)
Expand Down Expand Up @@ -88,7 +91,7 @@ class _0(
)


class _1Dict(schemas.immutabledict[str, None]):
class _1Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"baz",
Expand Down Expand Up @@ -122,7 +125,10 @@ def from_dict_(

@property
def baz(self) -> None:
return self.__getitem__("baz")
return typing.cast(
None,
self.__getitem__("baz")
)

def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__)
Expand Down Expand Up @@ -161,7 +167,7 @@ class _1(
)


class AllofWithBaseSchemaDict(schemas.immutabledict[str, int]):
class AllofWithBaseSchemaDict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"bar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)


class _0Dict(schemas.immutabledict[str, int]):
class _0Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"bar",
Expand Down Expand Up @@ -91,7 +91,7 @@ class _0(
)


class _1Dict(schemas.immutabledict[str, str]):
class _1Dict(schemas.immutabledict[str, schemas.OUTPUT_BASE_TYPES]):

__required_keys__: typing.FrozenSet[str] = frozenset({
"foo",
Expand Down Expand Up @@ -125,7 +125,10 @@ def from_dict_(

@property
def foo(self) -> str:
return self.__getitem__("foo")
return typing.cast(
str,
self.__getitem__("foo")
)

def get_additional_property_(self, name: str) -> typing.Union[schemas.OUTPUT_BASE_TYPES, schemas.Unset]:
schemas.raise_if_key_known(name, self.__required_keys__, self.__optional_keys__)
Expand Down
Loading