Skip to content

Commit

Permalink
mypy updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Nov 25, 2024
1 parent b64b323 commit 2aa8363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps4fs/generator/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def previews(self) -> list[str]:
preview_path = os.path.join(self.previews_directory, "background_dem.png")

# pylint: disable=no-member
image = cv2.normalize(image, None, 0, 255, cv2.NORM_MINMAX, cv2.CV_8U)
image = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR)
image = cv2.normalize(image, None, 0, 255, cv2.NORM_MINMAX, cv2.CV_8U) # type: ignore
image = cv2.cvtColor(image, cv2.COLOR_GRAY2BGR) # type: ignore
cv2.imwrite(preview_path, image)

return [preview_path]
Expand Down

0 comments on commit 2aa8363

Please sign in to comment.