Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Mar 12, 2024
1 parent 107323c commit de9e6d5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ObjProperty:
if hasattr(input, 'number'):
self._number: float = input[\\"number\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any, Any] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any] = input[\\"additional_properties\\"]
@property
def number(self) -> float:
Expand All @@ -19,10 +19,10 @@ class ObjProperty:
self._number = number
@property
def additional_properties(self) -> dict[Any, Any]:
def additional_properties(self) -> dict[str, Any]:
return self._additional_properties
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any, Any]):
def additional_properties(self, additional_properties: dict[str, Any]):
self._additional_properties = additional_properties
",
]
Expand All @@ -37,7 +37,7 @@ class ObjProperty:
if hasattr(input, 'number'):
self._number: float = input[\\"number\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any, Any] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any] = input[\\"additional_properties\\"]
@property
def number(self) -> float:
Expand All @@ -47,10 +47,10 @@ class ObjProperty:
self._number = number
@property
def additional_properties(self) -> dict[Any, Any]:
def additional_properties(self) -> dict[str, Any]:
return self._additional_properties
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any, Any]):
def additional_properties(self, additional_properties: dict[str, Any]):
self._additional_properties = additional_properties
",
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Array [
if hasattr(input, 'email'):
self._email: str = input[\\"email\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any, Any] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any] = input[\\"additional_properties\\"]
@property
def email(self) -> str:
Expand All @@ -17,10 +17,10 @@ Array [
self._email = email
@property
def additional_properties(self) -> dict[Any, Any]:
def additional_properties(self) -> dict[str, Any]:
return self._additional_properties
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any, Any]):
def additional_properties(self, additional_properties: dict[str, Any]):
self._additional_properties = additional_properties
def serialize_to_json(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports[`PythonGenerator Class should render \`class\` type 1`] = `
self._members: str | float | bool = input[\\"members\\"]
self._array_type: List[str | float | Any] = input[\\"array_type\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any | str, Any | str] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any | str] = input[\\"additional_properties\\"]
@property
def street_name(self) -> str:
Expand Down Expand Up @@ -80,10 +80,10 @@ exports[`PythonGenerator Class should render \`class\` type 1`] = `
self._array_type = array_type
@property
def additional_properties(self) -> dict[Any | str, Any | str]:
def additional_properties(self) -> dict[str, Any | str]:
return self._additional_properties
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any | str, Any | str]):
def additional_properties(self, additional_properties: dict[str, Any | str]):
self._additional_properties = additional_properties
"
`;
Expand All @@ -99,7 +99,7 @@ exports[`PythonGenerator Class should work with custom preset for \`class\` type
if hasattr(input, 'property'):
self._property: str = input[\\"property\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any, Any] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any] = input[\\"additional_properties\\"]
test2
@property
Expand All @@ -112,11 +112,11 @@ exports[`PythonGenerator Class should work with custom preset for \`class\` type
test2
@property
def additional_properties(self) -> dict[Any, Any]:
def additional_properties(self) -> dict[str, Any]:
return self._additional_properties
test3
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any, Any]):
def additional_properties(self, additional_properties: dict[str, Any]):
self._additional_properties = additional_properties
"
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`PYTHON_JSON_SERIALIZER_PRESET should render serializer and deserializer
if hasattr(input, 'prop'):
self._prop: str = input[\\"prop\\"]
if hasattr(input, 'additional_properties'):
self._additional_properties: dict[Any, Any] = input[\\"additional_properties\\"]
self._additional_properties: dict[str, Any] = input[\\"additional_properties\\"]
@property
def prop(self) -> str:
Expand All @@ -16,10 +16,10 @@ exports[`PYTHON_JSON_SERIALIZER_PRESET should render serializer and deserializer
self._prop = prop
@property
def additional_properties(self) -> dict[Any, Any]:
def additional_properties(self) -> dict[str, Any]:
return self._additional_properties
@additional_properties.setter
def additional_properties(self, additional_properties: dict[Any, Any]):
def additional_properties(self, additional_properties: dict[str, Any]):
self._additional_properties = additional_properties
def serialize_to_json(self):
Expand Down

0 comments on commit de9e6d5

Please sign in to comment.