Skip to content

Commit

Permalink
[#467] update type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Dec 13, 2024
1 parent d33a6e6 commit 993855c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def url(self):
# zds_client.get_operation_url() can be used here but it increases HTTP overhead
return f"{self.service.api_root}objecttypes/{self.uuid}"

def clean_fields(self, exclude: Optional[Iterable[str]] = None) -> None:
def clean_fields(self, exclude: Iterable[str] | None = None) -> None:
super().clean_fields(exclude=exclude)

if exclude and "service" in exclude:
Expand Down

0 comments on commit 993855c

Please sign in to comment.