Commit 856731e
feat: enable mypy session for db-dtypes (#16689)
This PR enables the mypy session in noxfile.py for db-dtypes and aligns
it with the GAPIC generator template. It passes with some type ignores
added for missing stubs and internal pandas usage.
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 4009eda commit 856731eCopy full SHA for 856731e
5 files changed
+42-17Lines changed: 42 additions & 17 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/db-dtypes
- db_dtypes
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/db-dtypes/db_dtypes/__init__.py
Copy file name to clipboardExpand all lines: packages/db-dtypes/db_dtypes/__init__.py+6-4Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
| 59 | + |
59 | 60 | |
60 | 61 | |
61 | 62 | |
| ||
213 | 214 | |
214 | 215 | |
215 | 216 | |
216 | | - |
| 217 | + |
| 218 | + |
217 | 219 | |
218 | 220 | |
219 | 221 | |
| ||
322 | 324 | |
323 | 325 | |
324 | 326 | |
325 | | - |
| 327 | + |
326 | 328 | |
327 | 329 | |
328 | 330 | |
| ||
334 | 336 | |
335 | 337 | |
336 | 338 | |
337 | | - |
| 339 | + |
338 | 340 | |
339 | 341 | |
340 | 342 | |
|
Collapse file
packages/db-dtypes/db_dtypes/core.py
Copy file name to clipboardExpand all lines: packages/db-dtypes/db_dtypes/core.py+13-2Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
16 | 16 | |
17 | 17 | |
18 | 18 | |
| ||
50 | 50 | |
51 | 51 | |
52 | 52 | |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
53 | 60 | |
54 | 61 | |
55 | 62 | |
| ||
58 | 65 | |
59 | 66 | |
60 | 67 | |
61 | | - |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
62 | 73 | |
63 | 74 | |
64 | 75 | |
|
Collapse file
packages/db-dtypes/db_dtypes/json.py
Copy file name to clipboardExpand all lines: packages/db-dtypes/db_dtypes/json.py+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
| ||
203 | 203 | |
204 | 204 | |
205 | 205 | |
206 | | - |
| 206 | + |
207 | 207 | |
208 | 208 | |
209 | 209 | |
|
Collapse file
packages/db-dtypes/db_dtypes/pandas_backports.py
Copy file name to clipboardExpand all lines: packages/db-dtypes/db_dtypes/pandas_backports.py+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
|
Collapse file
packages/db-dtypes/noxfile.py
Copy file name to clipboardExpand all lines: packages/db-dtypes/noxfile.py+15-3Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
487 | 487 | |
488 | 488 | |
489 | 489 | |
490 | | - |
491 | | - |
492 | | - |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
| 499 | + |
| 500 | + |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
0 commit comments