mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix Ruff UP035 (also deprecated annotation symbols)
This commit is contained in:
@@ -20,7 +20,6 @@ import ifcopenshell
|
||||
import ifcopenshell.api.alignment
|
||||
import ifcopenshell.api.nest
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
def add_segment_to_layout(file: ifcopenshell.file, alignment: entity_instance, segment: entity_instance) -> None:
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.alignment.add_vertical_alignment
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def add_vertical_alignment_by_pi_method(
|
||||
|
||||
@@ -21,7 +21,7 @@ import ifcopenshell.api.aggregate
|
||||
import ifcopenshell.api.alignment
|
||||
import ifcopenshell.api.nest
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def create_alignment_by_pi_method(
|
||||
|
||||
@@ -30,7 +30,6 @@ from ifcopenshell import entity_instance
|
||||
from ifcopenshell.api.alignment import get_axis_subcontext
|
||||
|
||||
import math
|
||||
from typing import Sequence
|
||||
|
||||
import csv
|
||||
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import ifcopenshell.api.geometry
|
||||
from ifcopenshell import entity_instance
|
||||
|
||||
import math
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def create_geometric_representation(file: ifcopenshell.file, alignment: entity_instance) -> None:
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import ifcopenshell.api.alignment
|
||||
from ifcopenshell import entity_instance
|
||||
|
||||
import math
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def create_horizontal_alignment_by_pi_method(
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import ifcopenshell.api.alignment
|
||||
from ifcopenshell import entity_instance
|
||||
|
||||
import math
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def create_vertical_alignment_by_pi_method(
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
|
||||
import ifcopenshell.util.element
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.util
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
import ifcopenshell.util.representation
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
from ifcopenshell import entity_instance
|
||||
from ifcopenshell.api.alignment import get_axis_subcontext
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
import math
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
from ifcopenshell import entity_instance
|
||||
import ifcopenshell.ifcopenshell_wrapper as ifcopenshell_wrapper
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
import math
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.alignment
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
def map_alignment_segments(
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
import ifcopenshell
|
||||
from ifcopenshell import ifcopenshell_wrapper
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
from collections.abc import Sequence
|
||||
import math
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
import ifcopenshell
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
def name_segments(prefix: str, alignment: entity_instance) -> None:
|
||||
|
||||
-1
@@ -21,7 +21,6 @@ import ifcopenshell.api
|
||||
from ifcopenshell import ifcopenshell_wrapper
|
||||
import ifcopenshell.geom
|
||||
from ifcopenshell import entity_instance
|
||||
from typing import Sequence
|
||||
import numpy as np
|
||||
import math
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.alignment
|
||||
import math
|
||||
from typing import Sequence
|
||||
|
||||
import numpy as np
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
||||
import ifcopenshell
|
||||
from typing import Union, Literal, Sequence
|
||||
from typing import Union, Literal
|
||||
from collections.abc import Sequence
|
||||
|
||||
IfcLogical = Union[bool, Literal["UNKNOWN"]]
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import ifcopenshell.api.style
|
||||
import ifcopenshell.util.element
|
||||
from typing import Iterable
|
||||
from collections.abc import Iterable
|
||||
|
||||
|
||||
def remove_style(file: ifcopenshell.file, style: ifcopenshell.entity_instance) -> None:
|
||||
|
||||
@@ -22,7 +22,7 @@ import ifcopenshell.api.owner
|
||||
import ifcopenshell.api.material
|
||||
import ifcopenshell.guid
|
||||
import ifcopenshell.util.element
|
||||
from typing import Union, Iterable, Any
|
||||
from typing import Union
|
||||
|
||||
|
||||
def assign_type(
|
||||
|
||||
Reference in New Issue
Block a user