Skip to content

Commit 18fc851

Browse files
authored
Add stub generation script (#64)
1 parent 8a4b76b commit 18fc851

File tree

4 files changed

+498
-1
lines changed

4 files changed

+498
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
!/uv.lock
1111
!/README.md
1212
!/LICENSE
13+
!/create_stubs.py

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@ The stubs previously didn't include recursive type definitions due to a lack of
6060
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),
6161
so they're mostly typed as `Any`. I believe these parts are mostly used internally by the library itself,
6262
so for most users this should be fine. Contributions to improve these stubs are welcome, though.
63+
64+
## Development
65+
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.
66+
67+
Feel free to use this to open a PR when new versions come out.

0 commit comments

Comments
 (0)