Skip to content

Commit

Permalink
Merge pull request #811 from karlch/dependabot-pip-misc-requirements-…
Browse files Browse the repository at this point in the history
…mypy-1.10.0

Bump mypy from 1.9.0 to 1.10.0 in /misc/requirements
  • Loading branch information
karlch authored May 10, 2024
2 parents a4fc3b4 + 0194ec3 commit 91a97ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion misc/requirements/requirements_mypy.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mypy==1.9.0
mypy==1.10.0
PyQt5-stubs==5.15.6.0
5 changes: 3 additions & 2 deletions vimiv/utils/imageheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

import functools

from typing import Optional, List, Callable, Tuple, BinaryIO
from typing import Optional, List, Callable, Tuple, BinaryIO, cast

from vimiv.qt.gui import QImageReader

Expand Down Expand Up @@ -127,7 +127,8 @@ def check_verified(header: bytes, file: BinaryIO) -> bool:
_registry.remove((filetype, check_verified))
return False

check_register = check_verified if validate else check
# See: https://github.com/python/mypy/issues/12056
check_register = cast(CheckFuncT, check_verified if validate else check)

if priority:
_registry.insert(0, (filetype, check_register))
Expand Down

0 comments on commit 91a97ec

Please sign in to comment.