Skip to content

Commit 96b2ad3

Browse files
committed
refactor: serializer explicitly returns None
1 parent 6ecff91 commit 96b2ad3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pydantic_scim2/base.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ class SCIM2Model(BaseModel):
1010

1111

1212
def int_to_str(status: Optional[int]) -> Optional[str]:
13-
if status is not None:
14-
return str(status)
13+
return None if status is None else str(status)

0 commit comments

Comments
 (0)