Merge pull request #1364 from ynput/bugfix/support-py37

Chore: Fix Python 3.7 in loader tool
This commit is contained in:
Jakub Trllo 2025-07-10 08:39:26 +02:00 committed by GitHub
commit 3585c3ccbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import logging
import uuid

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import sys
import traceback
import inspect

View file

@ -1,5 +1,6 @@
"""Products model for loader tools."""
from __future__ import annotations
import collections
import contextlib
from typing import TYPE_CHECKING, Iterable, Optional

View file

@ -1,3 +1,6 @@
from __future__ import annotations
class SelectionModel(object):
"""Model handling selection changes.

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import collections
from ayon_api import (

View file

@ -1,4 +1,5 @@
from __future__ import annotations
import typing
from typing import List, Tuple, Optional, Iterable, Any

View file

@ -2,7 +2,6 @@ from __future__ import annotations
import numbers
import uuid
from typing import Dict
from qtpy import QtWidgets, QtCore, QtGui
@ -249,7 +248,7 @@ class VersionDelegate(QtWidgets.QStyledItemDelegate):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._editor_by_id: Dict[str, VersionComboBox] = {}
self._editor_by_id: dict[str, VersionComboBox] = {}
self._task_ids_filter = None
self._statuses_filter = None
self._version_tags_filter = None

View file

@ -1,4 +1,5 @@
from __future__ import annotations
import collections
from typing import Optional

View file

@ -1,3 +1,5 @@
from __future__ import annotations
import copy
import uuid
from dataclasses import dataclass

View file

@ -1,3 +1,5 @@
from __future__ import annotations
from qtpy import QtWidgets, QtCore, QtGui
from ayon_core.resources import get_ayon_icon_filepath