Skip to content

Commit 5fc89ae

Browse files
committed
Tweaks several docstrings
1 parent e238ba0 commit 5fc89ae

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

google/cloud/bigquery/_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,8 @@ def _isinstance_or_raise(value: Any, dtype: Optional[Union[Any, Tuple[Any, ...]]
10421042
Any: Returns the input value if the type check is successful.
10431043
10441044
Raises:
1045-
TypeError: If the input value's type does not match the expected data type(s). """
1045+
TypeError: If the input value's type does not match the expected data type(s).
1046+
"""
10461047

10471048
# Simplest case
10481049
if dtype is None and value is None:

google/cloud/bigquery/external_config.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,16 +1072,16 @@ class ExternalCatalogTableOptions(ResourceBase):
10721072
options correspond to hive metastore's table level properties.
10731073
10741074
Args:
1075-
connection_id: Optional. The connection specifying the credentials to be
1075+
connection_id (Optional[str]): The connection specifying the credentials to be
10761076
used to read external storage, such as Azure Blob, Cloud Storage, or
10771077
S3. The connection is needed to read the open source table from
10781078
BigQuery Engine. The connection_id can have the form `..` or
1079-
`projects//locations//connections/`. (str)
1080-
parameters: Optional. A map of key value pairs defining the parameters
1079+
`projects//locations//connections/`.
1080+
parameters (Union[Dict[str, Any], None]): A map of key value pairs defining the parameters
10811081
and properties of the open source table. Corresponds with hive meta
1082-
store table parameters. Maximum size of 4Mib. (dict)
1083-
storage_descriptor: Optional. A storage descriptor containing information
1084-
about the physical storage of this table. (StorageDescriptor)
1082+
store table parameters. Maximum size of 4Mib.
1083+
storage_descriptor (Optional[StorageDescriptor]): A storage descriptor containing information
1084+
about the physical storage of this table.
10851085
"""
10861086

10871087
def __init__(
@@ -1116,7 +1116,8 @@ def connection_id(self, value: Optional[str]):
11161116
def parameters(self) -> Any:
11171117
"""Optional. A map of key value pairs defining the parameters and
11181118
properties of the open source table. Corresponds with hive meta
1119-
store table parameters. Maximum size of 4Mib."""
1119+
store table parameters. Maximum size of 4Mib.
1120+
"""
11201121

11211122
return self._properties.get("parameters")
11221123

0 commit comments

Comments
 (0)