- Notifications
You must be signed in to change notification settings - Fork321
Commitf8d4aaa
feat: add type hints for public methods (#613)
* feat: add type hint for public methods* feat: add bigquery-storage in requirement file* feat: add pandas in requirement file* feat: add return type hint* feat: remove pandas import as a string* Use the latest pytype version (2021.4.9)* Silence false import and module attribute errors* Fix misc. pytype warnings and false postiives* Make changes to generated files persistent* Make final cleanup of client.py* Change import ignores to more specific errors* Silence false positive type warning in job config* Silence noisy _helper type warnings* Silence false positives for resumable media code* Add pytype to nox.options.sessions* Hide for-type-check-only imports behind a flag* Remove obsolete skipIf decorator from two testsinspect.signature() was added in Python 3.3, and the library onlyneeds to suppport Python3.6+.* Install dependencies in pytype sessionThis avoids numerous unnecessary import and module attribute errors,rendering lots of pytype directive comments obsolete.* Be more specific about to_dataframe()'s return type* Add missing return type for _get_query_results()* Be more specific about pandas/pyarrow return types* Exclude typing-only imports from coverage checksCo-authored-by: HemangChothani <hemang.chothani@qlogic.io>Co-authored-by: Tim Swast <swast@google.com>1 parent34ecc3f commitf8d4aaa
File tree
21 files changed
+575
-331
lines changed- google/cloud/bigquery
- job
- magics/line_arg_parser
- routine
- samples/geography
- tests/unit
21 files changed
+575
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| 376 | + | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| 410 | + | |
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
0 commit comments
Comments
(0)