Skip to content

Commit

Permalink
fix new mypy findings
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Apr 25, 2024
1 parent 44ff353 commit 6e2e8eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/ezdxf/entities/acad_proxy_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def __virtual_entities__(self) -> Iterator[DXFGraphic]:
for e in ProxyGraphic(self.proxy_graphic, doc=self.doc).virtual_entities():
e.set_source_of_copy(self)
yield e
return []

def virtual_entities(self) -> Iterator[DXFGraphic]:
"""Yields proxy graphic as "virtual" entities."""
Expand Down
1 change: 0 additions & 1 deletion src/ezdxf/entities/dxfentity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,6 @@ def __virtual_entities__(self) -> Iterator[DXFGraphic]:
for e in ProxyGraphic(self.proxy_graphic, self.doc).virtual_entities():
e.set_source_of_copy(self)
yield e
return []

def virtual_entities(self) -> Iterator[DXFGraphic]:
"""Yields proxy graphic as "virtual" entities."""
Expand Down
6 changes: 3 additions & 3 deletions src/ezdxf/path/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def to_lwpolylines(
else:
paths = list(paths)
if len(paths) == 0:
return []
return
extrusion = Vec3(extrusion)
reference_point = Vec3(paths[0].start)
dxfattribs = dict(dxfattribs or {})
Expand Down Expand Up @@ -581,7 +581,7 @@ def to_polylines2d(
else:
paths = list(paths)
if len(paths) == 0:
return []
return
extrusion = Vec3(extrusion)
reference_point = Vec3(paths[0].start)
dxfattribs = dict(dxfattribs or {})
Expand Down Expand Up @@ -744,7 +744,7 @@ def _polygon_converter(
else:
paths = list(paths)
if len(paths) == 0:
return []
return

extrusion = Vec3(extrusion)
reference_point = paths[0].start
Expand Down

0 comments on commit 6e2e8eb

Please sign in to comment.