diff --git a/changelog.rst b/changelog.rst index e081575e..867ab2f0 100644 --- a/changelog.rst +++ b/changelog.rst @@ -8,8 +8,8 @@ Changelog 2024-xx-xx • `full history `__ -- -- Thanks to our beloved contributors: @ +- [kqueue] Fix ``TypeError: kqueue.control() only accepts positional parameters`` (`#1062 `__) +- Thanks to our beloved contributors: @apoirier 5.0.0 ~~~~~ diff --git a/src/watchdog/observers/kqueue.py b/src/watchdog/observers/kqueue.py index 1648fca5..9f049ae6 100644 --- a/src/watchdog/observers/kqueue.py +++ b/src/watchdog/observers/kqueue.py @@ -599,7 +599,7 @@ def _read_events(self, timeout: float) -> list[select.kevent]: :type timeout: ``float`` (seconds) """ - return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout=timeout) + return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout) def queue_events(self, timeout: float) -> None: """Queues events by reading them from a call to the blocking