Skip to content

Commit

Permalink
mypy type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Feb 5, 2025
1 parent 80783b9 commit 9a81cc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ezdxf/addons/acisbrowser/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def load_dxf(self, path: str):
self.statusbar.showMessage(self.make_loading_message())
else:
msg = f"DXF file '{path}' contains no ACIS data"
QMessageBox.information(self, "Loading Error", msg)
QMessageBox.information(self, "Loading Error", msg) # type: ignore

def make_loading_message(self) -> str:
assert self.doc is not None
Expand Down
4 changes: 2 additions & 2 deletions src/ezdxf/addons/drawing/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,13 @@ def draw_image_entity(self, entity: DXFGraphic, properties: Properties) -> None:

if loaded_image is not None:
color: RGB | RGBA
loaded_image = loaded_image.convert("RGBA")
loaded_image = loaded_image.convert("RGBA") # type: ignore

if image.dxf.contrast != 50:
# note: this is only an approximation.
# Unclear what the exact operation AutoCAD uses
amount = image.dxf.contrast / 50
loaded_image = PIL.ImageEnhance.Contrast(loaded_image).enhance(
loaded_image = PIL.ImageEnhance.Contrast(loaded_image).enhance( # type: ignore
amount
)

Expand Down

0 comments on commit 9a81cc8

Please sign in to comment.