Commit 78eb0a1
fix: fix mypy errors (#15483)
Towards #15104
This is needed to unblock
#15457 which has
the following mypy failure for `google-cloud-automl`
```
nox > mypy -p google
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/automl_v1beta1/services/tables/gcs_client.py:25: error: Library stubs not installed for "pandas" [import-untyped]
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/automl_v1beta1/services/tables/gcs_client.py:25: note: Hint: "python3 -m pip install pandas-stubs"
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/automl_v1beta1/services/tables/gcs_client.py:25: note: (or run "mypy --install-types" to install all missing stub packages)
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/automl_v1beta1/services/tables/gcs_client.py:25: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
.nox/mypy-3-14/lib/python3.14/site-packages/google/cloud/automl_v1beta1/services/tables/gcs_client.py:30: error: Module "google.cloud" has no attribute "storage" [attr-defined]
```
See follow up bug for`google-cloud-storage` :
https://github.com/googleapis/python-storage/issues/318
See follow up bug for pre-release failure:
googleapis/proto-plus-python#558
See follow up bug to add `--strict` flag for mypy:
https://github.com/googleapis/gapic-generator-python/issues/2089
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent 871cdee commit 78eb0a1Copy full SHA for 78eb0a1
3 files changed
+17-3Lines changed: 17 additions & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- .librarian/generator-input/client-post-processing
- packages/google-cloud-automl
- google/cloud/automl_v1beta1/services/tables
Expand file treeCollapse file tree
Open diff view settings
Collapse file
.librarian/generator-input/client-post-processing/integrate-isolated-handwritten-code.yaml
Copy file name to clipboardExpand all lines: .librarian/generator-input/client-post-processing/integrate-isolated-handwritten-code.yaml+11Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
290 | 290 | |
291 | 291 | |
292 | 292 | |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
Collapse file
packages/google-cloud-automl/google/cloud/automl_v1beta1/services/tables/gcs_client.py
Copy file name to clipboardExpand all lines: packages/google-cloud-automl/google/cloud/automl_v1beta1/services/tables/gcs_client.py+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
31 | 33 | |
32 | | - |
| 34 | + |
33 | 35 | |
34 | 36 | |
35 | 37 | |
|
Collapse file
packages/google-cloud-automl/noxfile.py
Copy file name to clipboardExpand all lines: packages/google-cloud-automl/noxfile.py+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
101 | 101 | |
102 | 102 | |
103 | 103 | |
| 104 | + |
104 | 105 | |
105 | 106 | |
106 | 107 | |
|
0 commit comments