Skip to content

Commit

Permalink
fix: mypy unused ignore, python/mypy#8823
Browse files Browse the repository at this point in the history
  • Loading branch information
MikulasZelinka committed Jan 5, 2023
1 parent fd0e50c commit 2a1ef0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ profile = "black"
disallow_untyped_defs = true
strict = true

# this is specifically for "from ctypes import windll # type: ignore"
# open issue: https://github.com/python/mypy/issues/8823
warn_unused_ignores = false

[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
Expand Down
2 changes: 1 addition & 1 deletion src/searchlauncher/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def show_launcher(group_name: str) -> None:
def start_gui() -> None:
if platform.system() == "Windows":
logger.debug("Fixing resolution scaling on Windows")
from ctypes import windll
from ctypes import windll # type: ignore

# Fix blurry font with resolution scaling on Windows:
windll.shcore.SetProcessDpiAwareness(1)
Expand Down

0 comments on commit 2a1ef0b

Please sign in to comment.