From 42cf87bb30c4cf2d19eba4a86c20fa198ff48208 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Sun, 5 Jan 2025 12:30:29 +0100 Subject: [PATCH] style Signed-off-by: Jan Kowalleck --- py_serializable/__init__.py | 6 +++--- tests/model.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/py_serializable/__init__.py b/py_serializable/__init__.py index 06ea491..a10cc7e 100644 --- a/py_serializable/__init__.py +++ b/py_serializable/__init__.py @@ -1066,9 +1066,9 @@ def __hash__(self) -> int: def __repr__(self) -> str: return f'' + f'array={self.is_array}, enum={self.is_enum}, optional={self.is_optional}, ' \ + f'c_type={self.concrete_type}, type={self.type_}, custom_type={self.custom_type}, ' \ + f'xml_attr={self.is_xml_attribute}, xml_sequence={self.xml_sequence}>' @classmethod def defer_property_type_parsing(cls, prop: 'ObjectMetadataLibrary.SerializableProperty', diff --git a/tests/model.py b/tests/model.py index 2cc2c4a..f30437e 100644 --- a/tests/model.py +++ b/tests/model.py @@ -294,7 +294,7 @@ def __str__(self) -> str: @py_serializable.serializable_class(name='bigbook', - ignore_during_deserialization=['something_to_be_ignored', 'ignore_me', 'ignored']) + ignore_during_deserialization=['something_to_be_ignored', 'ignore_me', 'ignored']) class Book: def __init__(self, title: str, isbn: str, publish_date: date, authors: Iterable[str],