ruff: fix deprecated-import

This commit is contained in:
Andrej730
2026-08-10 15:47:42 +05:00
parent 055f64fa9b
commit ff22a9d1f3
5 changed files with 9 additions and 5 deletions
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from typing import Callable from collections.abc import Callable
from ifcopenshell import entity_instance from ifcopenshell import entity_instance
@@ -16,9 +16,10 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from collections.abc import Callable
from dataclasses import dataclass, field from dataclasses import dataclass, field
from math import cos, pi, radians, sin, tan from math import cos, pi, radians, sin, tan
from typing import Callable, Literal, Optional from typing import Literal, Optional
import numpy as np import numpy as np
@@ -19,7 +19,8 @@
from __future__ import annotations from __future__ import annotations
import json import json
from typing import Optional, Sequence from collections.abc import Sequence
from typing import Optional
import ifcopenshell.api.pset import ifcopenshell.api.pset
import ifcopenshell.util.element import ifcopenshell.util.element
@@ -19,7 +19,8 @@
from __future__ import annotations from __future__ import annotations
import json import json
from typing import Optional, Sequence from collections.abc import Sequence
from typing import Optional
import numpy as np import numpy as np
@@ -16,7 +16,8 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>. # along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
from typing import Any, Literal, Sequence, Union from collections.abc import Sequence
from typing import Any, Literal, Union
from typing_extensions import Self, Unpack from typing_extensions import Self, Unpack