Skip to content

Commit e165836

Browse files
committed
new mypy, new "type ignore"
1 parent f4332b2 commit e165836

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/ezdxf/entities/boundary_paths.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def _edges(points) -> Iterable[Union[LineEdge, ArcEdge]]:
286286
start_angle,
287287
end_angle,
288288
arc.radius,
289-
) = bulge_to_arc(prev_point, point, prev_bulge)
289+
) = bulge_to_arc(prev_point, point, prev_bulge) # type: ignore
290290
chk_point = arc.center + Vec2.from_angle(start_angle, arc.radius)
291291
arc.ccw = chk_point.isclose(prev_point, abs_tol=1e-9)
292292
arc.start_angle = math.degrees(start_angle) % 360.0

src/ezdxf/entities/mleader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ def load(cls, context: list[Union[DXFTag, list]]) -> MLeaderContext:
758758
ctx.mtext = content
759759
elif code == 296 and value == 1:
760760
content = BlockData() # type: ignore
761-
ctx.block = content
761+
ctx.block = content # type: ignore
762762
else:
763763
name = MLeaderContext.ATTRIBS.get(code)
764764
if name:

src/ezdxf/render/polyline.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _virtual_polyline_entities(
116116
attribs = dict(dxfattribs)
117117
if prev_bulge != 0:
118118
center, start_angle, end_angle, radius = bulge_to_arc(
119-
prev_point, point, prev_bulge
119+
prev_point, point, prev_bulge # type: ignore
120120
)
121121
if radius > 0:
122122
attribs["center"] = Vec3(center.x, center.y, elevation)
@@ -125,11 +125,11 @@ def _virtual_polyline_entities(
125125
attribs["end_angle"] = math.degrees(end_angle)
126126
if extrusion:
127127
attribs["extrusion"] = extrusion
128-
yield factory.new(dxftype="ARC", dxfattribs=attribs, doc=doc)
128+
yield factory.new(dxftype="ARC", dxfattribs=attribs, doc=doc) # type: ignore
129129
else:
130130
attribs["start"] = ocs.to_wcs(prev_point)
131131
attribs["end"] = ocs.to_wcs(point)
132-
yield factory.new(dxftype="LINE", dxfattribs=attribs, doc=doc)
132+
yield factory.new(dxftype="LINE", dxfattribs=attribs, doc=doc) # type: ignore
133133
prev_point = point
134134
prev_bulge = bulge
135135

src/ezdxf/render/trace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def from_polyline(cls, polyline: DXFGraphic, segments: int = 64) -> TraceBuilder
583583
else:
584584
ew = store_end_width
585585
sw = store_start_width
586-
trace.append(CurvedTrace.from_arc(arc, sw, ew, segments))
586+
trace.append(CurvedTrace.from_arc(arc, sw, ew, segments)) # type: ignore
587587
store_bulge = None
588588

589589
if bulge != 0: # arc from prev_point to point

0 commit comments

Comments
 (0)