Since the release of 3.0.0, I'm getting errors from mypy when I use Observer as a type in my function definitions:
from watchdog.observers import Observer
def myfn(obs: Observer) -> None:
pass
myobs = Observer()
myfn(myobs)
> mypy zz.py
zz.py:3: error: Variable "watchdog.observers.Observer" is not valid as a type [valid-type]
zz.py:3: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
Found 1 error in 1 file (checked 1 source file)
> python --version
Python 3.11.0
Platform: Windows
Since the release of 3.0.0, I'm getting errors from mypy when I use
Observeras a type in my function definitions:Platform: Windows