mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Bump ty to 0.0.72
This commit is contained in:
@@ -113,7 +113,9 @@ invalid-assignment = "ignore"
|
|||||||
invalid-parameter-default = "ignore"
|
invalid-parameter-default = "ignore"
|
||||||
missing-override-decorator = "ignore"
|
missing-override-decorator = "ignore"
|
||||||
invalid-yield = "ignore"
|
invalid-yield = "ignore"
|
||||||
|
unsound-yield = "ignore"
|
||||||
invalid-return-type = "ignore"
|
invalid-return-type = "ignore"
|
||||||
|
unsound-return-statement = "ignore"
|
||||||
non-callable-init-subclass = "ignore"
|
non-callable-init-subclass = "ignore"
|
||||||
not-iterable = "ignore"
|
not-iterable = "ignore"
|
||||||
possibly-missing-attribute = "ignore"
|
possibly-missing-attribute = "ignore"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
black==26.3.1
|
black==26.3.1
|
||||||
ruff==0.16.0
|
ruff==0.16.0
|
||||||
poethepoet
|
poethepoet
|
||||||
ty==0.0.63
|
ty==0.0.72
|
||||||
gersemi==0.28.0
|
gersemi==0.28.0
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ def _create_layout(file: ifcopenshell.file, alignment: entity_instance, points:
|
|||||||
|
|
||||||
start_dist_along = 0.0
|
start_dist_along = 0.0
|
||||||
gradient = None
|
gradient = None
|
||||||
|
dir = None
|
||||||
for p1, p2 in zip(points, points[1:]):
|
for p1, p2 in zip(points, points[1:]):
|
||||||
x1, y1, z1 = p1.Coordinates
|
x1, y1, z1 = p1.Coordinates
|
||||||
x2, y2, z2 = p2.Coordinates
|
x2, y2, z2 = p2.Coordinates
|
||||||
@@ -86,6 +87,7 @@ def _create_layout(file: ifcopenshell.file, alignment: entity_instance, points:
|
|||||||
start_dist_along += length
|
start_dist_along += length
|
||||||
|
|
||||||
# zero length segment
|
# zero length segment
|
||||||
|
assert dir is not None
|
||||||
hsegment = file.createIfcAlignmentSegment(
|
hsegment = file.createIfcAlignmentSegment(
|
||||||
ifcopenshell.guid.new(),
|
ifcopenshell.guid.new(),
|
||||||
DesignParameters=file.createIfcAlignmentHorizontalSegment(
|
DesignParameters=file.createIfcAlignmentHorizontalSegment(
|
||||||
|
|||||||
Reference in New Issue
Block a user