Skip to content

Commit

Permalink
[inotify] Fix missing event_filter for the full emitter (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Feb 12, 2024
1 parent 2fe1609 commit 29ab159
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/watchdog/observers/inotify.py
Expand Up @@ -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)
Expand Down

0 comments on commit 29ab159

Please sign in to comment.