This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit 59a5f58
authored
fix: add types to default and verify_token and Request __init__ based on comments in the source code. (#1588)
Recently, I've been using this library with mypy strict mode, which doesn't like the fact that these functions are unannotated (they're the only functions I use, and thus the only ones mypy complains about to me). I'm happy to see that this project has py.typed, so these annotations should fix the problem!1 parent e2135fb commit 59a5f58Copy full SHA for 59a5f58
3 files changed
+22-8Lines changed: 22 additions & 8 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- google
- auth
- transport
- oauth2
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+12-1Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| 25 | + |
24 | 26 | |
25 | 27 | |
26 | 28 | |
27 | 29 | |
28 | 30 | |
29 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
30 | 36 | |
31 | 37 | |
32 | 38 | |
| ||
588 | 594 | |
589 | 595 | |
590 | 596 | |
591 | | - |
| 597 | + |
| 598 | + |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
592 | 603 | |
593 | 604 | |
594 | 605 | |
|
Collapse file
google/auth/transport/requests.py
Copy file name to clipboardExpand all lines: google/auth/transport/requests.py+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
| ||
137 | 138 | |
138 | 139 | |
139 | 140 | |
140 | | - |
| 141 | + |
141 | 142 | |
142 | 143 | |
143 | 144 | |
|
Collapse file
+8-6Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
| 61 | + |
61 | 62 | |
62 | 63 | |
63 | 64 | |
64 | 65 | |
| 66 | + |
65 | 67 | |
66 | 68 | |
67 | 69 | |
| ||
105 | 107 | |
106 | 108 | |
107 | 109 | |
108 | | - |
109 | | - |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
114 | 116 | |
115 | 117 | |
116 | 118 | |
|
0 commit comments