Skip to content

Commit 5d49d55

Browse files
kmvanbrunttleonhardt
authored andcommitted
Changed mypy ignore to work on both Windows and Linux.
1 parent 7175161 commit 5d49d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/rl_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,15 @@ def rl_in_search_mode() -> bool: # pragma: no cover
279279
readline_state = ctypes.c_int.in_dll(readline_lib, "rl_readline_state").value
280280
return bool(in_search_mode & readline_state)
281281
if rl_type == RlType.PYREADLINE:
282-
from pyreadline3.modes.emacs import ( # type: ignore[import-not-found]
282+
from pyreadline3.modes.emacs import ( # type: ignore[import]
283283
EmacsMode,
284284
)
285285

286286
# These search modes only apply to Emacs mode, which is the default.
287287
if not isinstance(readline.rl.mode, EmacsMode):
288288
return False
289289

290-
# While in search mode, the current keyevent function is set one of the following.
290+
# While in search mode, the current keyevent function is set to one of the following.
291291
search_funcs = (
292292
readline.rl.mode._process_incremental_search_keyevent,
293293
readline.rl.mode._process_non_incremental_search_keyevent,

0 commit comments

Comments
 (0)