Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 61e3a34

Browse files
committed
Include manual Sql types in docs
1 parent 24e3d48 commit 61e3a34

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Types for Google Cloud Bigquery v2 API
22
======================================
33

4-
.. automodule:: google.cloud.bigquery_v2.types
4+
.. automodule:: google.cloud.bigquery.types
55
:members:
66
:undoc-members:
77
:show-inheritance:

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
"samples/AUTHORING_GUIDE.md",
115115
"samples/CONTRIBUTING.md",
116116
"samples/snippets/README.rst",
117-
"bigquery_v2/services.rst", # generated by the code generator
118117
]
119118

120119
# The reST default role (used for this markup: `text`) to use for all

docs/reference.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ Encryption Configuration
197197
Additional Types
198198
================
199199

200-
Protocol buffer classes for working with the Models API.
200+
Helper SQL type classes.
201201

202202
.. toctree::
203203
:maxdepth: 2
204204

205-
bigquery_v2/types
205+
bigquery/types

owlbot.py

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
s.replace(
6464
library / f"google/cloud/bigquery_{library.name}/types/standard_sql.py",
6565
r"type_ ",
66-
"type "
66+
"type ",
6767
)
6868

6969
s.move(
@@ -78,8 +78,8 @@
7878
"noxfile.py",
7979
"setup.py",
8080
f"scripts/fixup_bigquery_{library.name}_keywords.py",
81-
f"google/cloud/bigquery/__init__.py",
82-
f"google/cloud/bigquery/py.typed",
81+
"google/cloud/bigquery/__init__.py",
82+
"google/cloud/bigquery/py.typed",
8383
# There are no public API endpoints for the generated ModelServiceClient,
8484
# thus there's no point in generating it and its tests.
8585
f"google/cloud/bigquery_{library.name}/services/**",
@@ -93,10 +93,7 @@
9393
# Add templated files
9494
# ----------------------------------------------------------------------------
9595
templated_files = common.py_library(
96-
cov_level=100,
97-
samples=True,
98-
microgenerator=True,
99-
split_system_tests=True,
96+
cov_level=100, samples=True, microgenerator=True, split_system_tests=True,
10097
)
10198

10299
# BigQuery has a custom multiprocessing note
@@ -109,7 +106,7 @@
109106
# Include custom SNIPPETS_TESTS job for performance.
110107
# https://github.com/googleapis/python-bigquery/issues/191
111108
".kokoro/presubmit/presubmit.cfg",
112-
]
109+
],
113110
)
114111

115112
# ----------------------------------------------------------------------------
@@ -121,42 +118,36 @@
121118
s.replace(
122119
"docs/conf.py",
123120
r'\{"members": True\}',
124-
'{"members": True, "inherited-members": True}'
125-
)
126-
127-
# Tell Sphinx to ingore autogenerated docs files.
128-
s.replace(
129-
"docs/conf.py",
130-
r'"samples/snippets/README\.rst",',
131-
'\g<0>\n "bigquery_v2/services.rst", # generated by the code generator',
121+
'{"members": True, "inherited-members": True}',
132122
)
133123

134124
# ----------------------------------------------------------------------------
135125
# pytype-related changes
136126
# ----------------------------------------------------------------------------
137127

138128
# Add .pytype to .gitignore
139-
s.replace(".gitignore", r"\.pytest_cache", "\g<0>\n.pytype")
129+
s.replace(".gitignore", r"\.pytest_cache", "\\g<0>\n.pytype")
140130

141131
# Add pytype config to setup.cfg
142132
s.replace(
143133
"setup.cfg",
144134
r"universal = 1",
145-
textwrap.dedent(""" \g<0>
135+
textwrap.dedent(
136+
""" \\g<0>
146137
147138
[pytype]
148139
python_version = 3.8
149140
inputs =
150141
google/cloud/
151142
exclude =
152143
tests/
153-
google/cloud/bigquery_v2/
154144
output = .pytype/
155145
disable =
156146
# There's some issue with finding some pyi files, thus disabling.
157147
# The issue https://github.com/google/pytype/issues/150 is closed, but the
158148
# error still occurs for some reason.
159-
pyi-error""")
149+
pyi-error"""
150+
),
160151
)
161152

162153
s.shell.run(["nox", "-s", "blacken"], hide_output=False)

0 commit comments

Comments
 (0)