Fix Ruff UP035 (also deprecated annotation symbols)

This commit is contained in:
Andrej
2025-06-09 10:21:22 +05:00
parent 7d4176d105
commit 02d359d0e6
96 changed files with 140 additions and 134 deletions
@@ -34,11 +34,7 @@ except ImportError:
USE_OCCT_HANDLE = True
from collections import defaultdict, OrderedDict
try: # python 3.3+
from collections.abc import Iterable
except ModuleNotFoundError: # python 2
from collections import Iterable
from collections.abc import Iterable
try:
QString = unicode
@@ -28,7 +28,8 @@ from ..entity_instance import entity_instance
from . import has_occ
from typing import TypeVar, Union, Optional, Generator, Any, Literal, overload, TYPE_CHECKING, Iterable, cast, TypedDict
from typing import TypeVar, Union, Optional, Any, Literal, overload, TYPE_CHECKING, cast
from collections.abc import Generator, Iterable
if TYPE_CHECKING:
from OCC.Core import TopoDS