mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
fix groups iter
This commit is contained in:
parent
51f43076b5
commit
a207430814
1 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ Todos:
|
|||
"""
|
||||
|
||||
import collections
|
||||
from typing import Any
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from openpype.client import get_asset_by_name
|
||||
from openpype.lib import (
|
||||
|
|
@ -719,8 +719,9 @@ class TVPaintAutoDetectRenderCreator(TVPaintCreator):
|
|||
mark_for_review: bool,
|
||||
existing_instance: CreatedInstance | None=None,
|
||||
) -> CreatedInstance | None:
|
||||
match_group: dict[str, Any] | None = next(
|
||||
match_group: Union[dict[str, Any], None] = next(
|
||||
(
|
||||
group
|
||||
for group in groups
|
||||
if group["group_id"] == group_id
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue