Download Default Type Stubs#
git clone https://github.com/microsoft/python-type-stubs $HOME/.local/src/python-type-stubs
Use it in Emacs#
(setq lsp-pyright-stub-path (concat (getenv "HOME") "/.local//src/python-type-stubs")) ;; example
Add Django Type Stubs#
git clone git@github.com:typeddjango/django-stubs.git ~/.local/src/django-stubs
ln -sf ~/.local/src/django-stubs/django-stubs ~/.local/src/python-type-stubs/django
Add Celery Type Stubs#
git clone https://github.com/sbdchd/celery-types ~/.local/src/celery-types
ln -sf ~/.local/src/celery-types/amqp-stubs ~/.local/src/python-type-stubs/amqp
ln -sf ~/.local/src/celery-types/billiard-stubs ~/.local/src/python-type-stubs/billiard
ln -sf ~/.local/src/celery-types/celery-stubs ~/.local/src/python-type-stubs/celery
ln -sf ~/.local/src/celery-types/django_celery_results-stubs ~/.local/src/python-type-stubs/django_celery_results
ln -sf ~/.local/src/celery-types/ephem-stubs ~/.local/src/python-type-stubs/ephem
ln -sf ~/.local/src/celery-types/kombu-stubs ~/.local/src/python-type-stubs/kombu
ln -sf ~/.local/src/celery-types/vine-stubs ~/.local/src/python-type-stubs/vine