From 5be47d4f5b7a324d72c38447d8f8bc12e12aeb63 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:05:50 +0200 Subject: [PATCH] better typehint --- client/ayon_core/tools/publisher/abstract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/tools/publisher/abstract.py b/client/ayon_core/tools/publisher/abstract.py index f5c8306631..04a1985cbb 100644 --- a/client/ayon_core/tools/publisher/abstract.py +++ b/client/ayon_core/tools/publisher/abstract.py @@ -543,11 +543,11 @@ class AbstractPublisherFrontend(AbstractPublisherCommon): pass @abstractmethod - def get_publish_error_info(self) -> Union["PublishErrorInfo", None]: + def get_publish_error_info(self) -> Optional["PublishErrorInfo"]: """Current error message which cause fail of publishing. Returns: - Union[PublishErrorInfo, None]: Error info or None. + Optional[PublishErrorInfo]: Error info or None. """ pass