Docs: consider running mypy/pyright on docs/example
folder
#3816
Labels
Documentation 📚
This is related to documentation
Enhancement
This is a new feature or request
Typing
This relates to typing
Summary
I've noticed several type errors in examples. For example:
litestar/docs/examples/data_transfer_objects/factory/patch_requests.py
Line 33 in 236cfa3
It is a type error, because
data.update_instance
expectsT=Person
) and we give itT=Person | None
from.get
I've checked, there are 99 type errors in examples right now:
What we can do better?
type: ignore
(because this is very important for docs, we cannot teach users adding ignores in many cases)What do others think? :)
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: