From 463b37d5a7c041090ff4ec0169bece789f0dfe7c Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 25 Jun 2024 16:04:19 +0200 Subject: [PATCH] Remove usage of `Union` in favor of `Optional`. This could also be `dict[str, Any] | None` but my IDE still displayed that as `Optional[dict[str, Any]]` so I guess this is just as fine. --- client/ayon_core/pipeline/create/creator_plugins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/pipeline/create/creator_plugins.py b/client/ayon_core/pipeline/create/creator_plugins.py index b1278ae228..c832a9c3a0 100644 --- a/client/ayon_core/pipeline/create/creator_plugins.py +++ b/client/ayon_core/pipeline/create/creator_plugins.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import copy import collections -from typing import TYPE_CHECKING, Optional, Union +from typing import TYPE_CHECKING, Optional from abc import ABCMeta, abstractmethod @@ -229,7 +229,7 @@ class BaseCreator: plugin_name (str): Name of settings. Returns: - Union[dict[str, Any], None]: Settings values or None. + Optional[dict[str, Any]]: Settings values or None. """ settings = project_settings.get(category_name)