diff --git a/src/ezdxf/addons/acisbrowser/browser.py b/src/ezdxf/addons/acisbrowser/browser.py index dad2e31ce..b98b272d9 100644 --- a/src/ezdxf/addons/acisbrowser/browser.py +++ b/src/ezdxf/addons/acisbrowser/browser.py @@ -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 diff --git a/src/ezdxf/addons/drawing/frontend.py b/src/ezdxf/addons/drawing/frontend.py index c437e3c4e..b4a6902bf 100644 --- a/src/ezdxf/addons/drawing/frontend.py +++ b/src/ezdxf/addons/drawing/frontend.py @@ -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 )