From 43179481e14f8581e27fdff1649bd831c3366854 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Wed, 4 Sep 2024 03:36:16 +0800 Subject: [PATCH 1/2] fix: correct `tricks` typing be a list of dictionary --- src/watchdog/watchmedo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watchdog/watchmedo.py b/src/watchdog/watchmedo.py index 4aab0872..a4af65e3 100644 --- a/src/watchdog/watchmedo.py +++ b/src/watchdog/watchmedo.py @@ -190,7 +190,7 @@ def observe_with( observer.join() -def schedule_tricks(observer: BaseObserver, tricks: dict, pathname: str, *, recursive: bool) -> None: +def schedule_tricks(observer: BaseObserver, tricks: list[dict], pathname: str, *, recursive: bool) -> None: """Schedules tricks with the specified observer and for the given watch path. From ed8a60511a2d773803ecc16a50e367c962c64abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Tue, 3 Sep 2024 22:33:24 +0200 Subject: [PATCH 2/2] Update changelog.rst --- changelog.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.rst b/changelog.rst index 584e6baf..95c4a26c 100644 --- a/changelog.rst +++ b/changelog.rst @@ -8,8 +8,8 @@ Changelog 2024-xx-xx • `full history `__ -- -- Thanks to our beloved contributors: @BoboTiG, @ +- [watchmedo] Fix ``tricks`` argument type of ``schedule_tricks()`` (`#1063 `__) +- Thanks to our beloved contributors: @BoboTiG, @gnought 5.0.1 ~~~~~