Skip to content

Commit

Permalink
Update docs/source/quickstart.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG authored Nov 1, 2024
1 parent 9e7afc5 commit c321be7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ In order to correctly type your own code your should use
from watchdog.observers import Observer
from watchdog.observers.api import BaseObserver

def my_func(o: BaseObserver) -> None:
# Do something with o
return
def my_func(obs: BaseObserver) -> None:
# Do something with obs
pass

observer: BaseObserver = Observer()
my_func(observer)

0 comments on commit c321be7

Please sign in to comment.