From 993855cd066b5f43c5bea94e24c935beecd438d7 Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Fri, 13 Dec 2024 14:38:40 +0100 Subject: [PATCH] [#467] update type hinting --- src/objects/core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/core/models.py b/src/objects/core/models.py index 1a68df91..d535f33d 100644 --- a/src/objects/core/models.py +++ b/src/objects/core/models.py @@ -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: