mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Fix Ruff UP035 (also deprecated annotation symbols)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user