GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: fix mypy errors (#15483) · googleapis/google-cloud-python@78eb0a1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .librarian/generator-input/client-post-processing
    • integrate-isolated-handwritten-code.yaml
  • packages/google-cloud-automl
    • google/cloud/automl_v1beta1/services/tables
      • gcs_client.py
    • noxfile.py
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 numberDiff line numberDiff line change
@@ -290,3 +290,14 @@ replacements:
290290
after: |
291291
UNIT_TEST_EXTRAS: List[str] = ["pandas", "storage"]
292292
count: 1
293+
- paths: [
294+
packages/google-cloud-automl/noxfile.py,
295+
]
296+
before: |
297+
"types-protobuf",
298+
\ \)
299+
after: |
300+
"types-protobuf",
301+
"pandas-stubs",
302+
)
303+
count: 1
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 numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
try:
2525
import pandas
2626
except ImportError: # pragma: NO COVER
27-
pandas = None
27+
pandas = None # type: ignore[assignment]
2828

2929
try:
30-
from google.cloud import storage
30+
# TODO(https://github.com/googleapis/python-storage/issues/318):
31+
# Remove `type: ignore` once this bug is fixed
32+
from google.cloud import storage # type: ignore[attr-defined]
3133
except ImportError: # pragma: NO COVER
32-
storage = None
34+
storage = None # type: ignore[assignment]
3335

3436
_LOGGER = logging.getLogger(__name__)
3537
_PANDAS_REQUIRED = "pandas is required to verify type DataFrame."
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 numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def mypy(session):
101101
"mypy<1.16.0",
102102
"types-requests",
103103
"types-protobuf",
104+
"pandas-stubs",
104105
)
105106
session.install(".")
106107
session.run(

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.