Library stubs used by bentoml
Make sure to add an upstream remotes to bentoml main repository, find out more here If you want to contribute stubs that is not yet existed in our VCS, make sure to follow the below steps:
-
Generate stubs with
pyright
:pyright --createstub <imports_library>
-
Minimize stubs with
./scripts/tools/stubs_cleanup.sh
-
Commit the typings repo, with
git add -f typings/<imports_library>
-
Edit changes and get a diff files:
git diff HEAD upstream/main > <imports_library>.diff
- Commit the diff files
Done.