Skip to content

Commit

Permalink
Add stub generation script (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
henribru authored Jan 24, 2025
1 parent 8a4b76b commit 18fc851
Show file tree
Hide file tree
Showing 4 changed files with 498 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
!/uv.lock
!/README.md
!/LICENSE
!/create_stubs.py
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ The stubs previously didn't include recursive type definitions due to a lack of
There are detailed stubs for the API services, but other parts of the library have only been annotated with [stubgen](https://mypy.readthedocs.io/en/stable/stubgen.html),
so they're mostly typed as `Any`. I believe these parts are mostly used internally by the library itself,
so for most users this should be fine. Contributions to improve these stubs are welcome, though.

## Development
You can run `create_stubs.py` to generate new stubs. Note that you should first update the google-api-python-client dependency and also clone https://github.com/googleapis/google-api-python-client.

Feel free to use this to open a PR when new versions come out.
Loading

0 comments on commit 18fc851

Please sign in to comment.