You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,22 @@ The stubs were generated automatically based on Google's [Discovery Documents](h
11
11
12
12
If you find incorrect annotations, please create an issue.
13
13
14
+
Releases can be somewhat infrequent. If you need a new release, create an issue and I'll probably get around to it faster.
15
+
14
16
## Installation
15
17
16
18
```shell script
17
19
$ pip install google-api-python-client-stubs
18
20
```
19
21
22
+
The stubs should be automatically picked up by your editor or typechecker.
23
+
20
24
## Caveats
21
25
22
26
### Performance
23
27
The stubs contain a separate overload of `googleapiclient.discovery.build` for each service and version (see `discovery.pyi`).
24
28
This can lead to slow type inference for this function. Mypy will generally be pretty fast after the first run,
25
-
but you might experience slow autocomplete. If you're experiencing this problem you can bypass type inference with explicit annotations,
29
+
but you might experience slow autocomplete in your editor. If you're experiencing this problem you can bypass type inference with explicit annotations,
26
30
e.g. `sheets_service: SheetsResource = build("sheets", "v4")` instead of `sheets_service = build("sheets", "v4")`.
27
31
See the next section for some caveats to this approach.
0 commit comments