Skip to content

Commit

Permalink
[watchmedo] Fix tricks argument type of schedule_tricks() (#1063)
Browse files Browse the repository at this point in the history
* fix: correct `tricks` typing be a list of dictionary

* Update changelog.rst

---------

Co-authored-by: Mickaël Schoentgen <[email protected]>
  • Loading branch information
gnought and BoboTiG authored Sep 3, 2024
1 parent 236a57c commit 4427aa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Changelog

2024-xx-xx • `full history <https://github.com/gorakhargosh/watchdog/compare/v5.0.1...HEAD>`__

-
- Thanks to our beloved contributors: @BoboTiG, @
- [watchmedo] Fix ``tricks`` argument type of ``schedule_tricks()`` (`#1063 <https://github.com/gorakhargosh/watchdog/pull/1063>`__)
- Thanks to our beloved contributors: @BoboTiG, @gnought

5.0.1
~~~~~
Expand Down
2 changes: 1 addition & 1 deletion src/watchdog/watchmedo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4427aa4

Please sign in to comment.