Skip to content

Commit

Permalink
refactor: set simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Jul 6, 2024
1 parent 633441a commit f4c4527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serializable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def __init__(self, *, klass: type, custom_name: Optional[str] = None,
if serialization_types is None:
serialization_types = _DEFAULT_SERIALIZATION_TYPES
self._serialization_types = serialization_types
self._ignore_during_deserialization = set(ignore_during_deserialization or [])
self._ignore_during_deserialization = set(ignore_during_deserialization or ())

@property
def name(self) -> str:
Expand Down Expand Up @@ -762,7 +762,7 @@ def __init__(self, *, prop_name: str, prop_type: Any, custom_names: Dict[Seriali
self._include_none_views = set()
self._is_xml_attribute = is_xml_attribute
self._string_format = string_format_
self._views = set(views or [])
self._views = set(views or ())
self._xml_array_config = xml_array_config
self._xml_sequence = xml_sequence_ or self._DEFAULT_XML_SEQUENCE

Expand Down

0 comments on commit f4c4527

Please sign in to comment.