mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
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.
This commit is contained in:
parent
37d88559a9
commit
463b37d5a7
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import copy
|
import copy
|
||||||
import collections
|
import collections
|
||||||
from typing import TYPE_CHECKING, Optional, Union
|
from typing import TYPE_CHECKING, Optional
|
||||||
|
|
||||||
from abc import ABCMeta, abstractmethod
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
|
|
@ -229,7 +229,7 @@ class BaseCreator:
|
||||||
plugin_name (str): Name of settings.
|
plugin_name (str): Name of settings.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Union[dict[str, Any], None]: Settings values or None.
|
Optional[dict[str, Any]]: Settings values or None.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
settings = project_settings.get(category_name)
|
settings = project_settings.get(category_name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue