Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
It seems to only check the true condition based on the given Python version in the config...

See python/mypy#12286
  • Loading branch information
The-Compiler authored and twigleingrid committed May 10, 2022
1 parent e61720b commit 7d9951e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qutebrowser/misc/utilcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def debug_cache_stats() -> None:
"""Print LRU cache stats."""
if sys.version_info < (3, 9):
raise cmdutils.CommandError('debugcachestats not supported on python < 3.9')
debugcachestats.debug_cache_stats()
debugcachestats.debug_cache_stats() # type: ignore[unreachable]


@cmdutils.register(debug=True)
Expand Down

0 comments on commit 7d9951e

Please sign in to comment.