From 29ab1594a48544899f4124cf719e53f5f2c06da5 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Mon, 12 Feb 2024 12:02:16 +0100 Subject: [PATCH] [inotify] Fix missing `event_filter` for the full emitter (#1032) --- src/watchdog/observers/inotify.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/watchdog/observers/inotify.py b/src/watchdog/observers/inotify.py index fe967302..1001e459 100644 --- a/src/watchdog/observers/inotify.py +++ b/src/watchdog/observers/inotify.py @@ -254,10 +254,15 @@ class InotifyFullEmitter(InotifyEmitter): Read events blocking timeout (in seconds). :type timeout: ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Optional[Iterable[:class:`watchdog.events.FileSystemEvent`]] + """ - def __init__(self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT): - super().__init__(event_queue, watch, timeout) + def __init__(self, event_queue, watch, timeout=DEFAULT_EMITTER_TIMEOUT, event_filter=None): + super().__init__(event_queue, watch, timeout, event_filter) def queue_events(self, timeout, events=True): InotifyEmitter.queue_events(self, timeout, full_events=events)