diff --git a/src/watchdog/observers/fsevents.py b/src/watchdog/observers/fsevents.py index 39831e6d..40dce1ad 100644 --- a/src/watchdog/observers/fsevents.py +++ b/src/watchdog/observers/fsevents.py @@ -29,7 +29,7 @@ import time import unicodedata -import _watchdog_fsevents as _fsevents # type: ignore[import] +import _watchdog_fsevents as _fsevents # type: ignore[import-not-found] from watchdog.events import ( DirCreatedEvent, diff --git a/src/watchdog/observers/fsevents2.py b/src/watchdog/observers/fsevents2.py index de3d1092..4b8872e8 100644 --- a/src/watchdog/observers/fsevents2.py +++ b/src/watchdog/observers/fsevents2.py @@ -29,8 +29,8 @@ from typing import List, Optional, Type # pyobjc -import AppKit # type: ignore[import] -from FSEvents import ( # type: ignore[import] +import AppKit # type: ignore[import-not-found] +from FSEvents import ( # type: ignore[import-not-found] CFRunLoopGetCurrent, CFRunLoopRun, CFRunLoopStop, diff --git a/tests/test_fsevents.py b/tests/test_fsevents.py index 01e9fee2..e2ddefeb 100644 --- a/tests/test_fsevents.py +++ b/tests/test_fsevents.py @@ -16,7 +16,7 @@ from time import sleep from unittest.mock import patch -import _watchdog_fsevents as _fsevents # type: ignore[import] +import _watchdog_fsevents as _fsevents # type: ignore[import-not-found] from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer diff --git a/tests/test_skip_repeats_queue.py b/tests/test_skip_repeats_queue.py index 59bff707..d60393e3 100644 --- a/tests/test_skip_repeats_queue.py +++ b/tests/test_skip_repeats_queue.py @@ -106,7 +106,7 @@ def test_consecutives_allowed_across_empties(): @cpython_only def test_eventlet_monkey_patching(): try: - import eventlet # type: ignore[import] + import eventlet # type: ignore[import-untyped] except Exception: pytest.skip("eventlet not installed")