Skip to content

Commit 11bd0b3

Browse files
committed
refactor: rename 'mark_with_schema' in 'set_complex_attribute_urns'
1 parent f15addb commit 11bd0b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scim2_models/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def check_mutability_issues(
363363
if original_val is not None and replacement_value is not None:
364364
cls.check_mutability_issues(original_val, replacement_value)
365365

366-
def mark_with_schema(self) -> None:
366+
def set_complex_attribute_urns(self) -> None:
367367
"""Navigate through attributes and sub-attributes of type ComplexAttribute, and mark them with a '_schema' attribute.
368368
369369
'_schema' will later be used by 'get_attribute_urn'.
@@ -472,7 +472,7 @@ def model_serializer_exclude_none(
472472
self, handler: SerializerFunctionWrapHandler, info: SerializationInfo
473473
) -> dict[str, Any]:
474474
"""Remove `None` values inserted by the :meth:`~scim2_models.base.BaseModel.scim_serializer`."""
475-
self.mark_with_schema()
475+
self.set_complex_attribute_urns()
476476
result = handler(self)
477477
return {key: value for key, value in result.items() if value is not None}
478478

0 commit comments

Comments
 (0)