Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix repeated spelling error #3260

Merged
merged 2 commits into from
Apr 3, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions bigquery/google/cloud/bigquery/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class AbstractQueryParameter(object):
"""
@classmethod
def from_api_repr(cls, resource):
"""Factory: construct paramter from JSON resource.
"""Factory: construct parameter from JSON resource.

:type resource: dict
:param resource: JSON mapping of parameter
Expand All @@ -364,7 +364,7 @@ class ScalarQueryParameter(AbstractQueryParameter):

:type name: str or None
:param name: Parameter name, used via ``@foo`` syntax. If None, the
paramter can only be addressed via position (``?``).
parameter can only be addressed via position (``?``).

:type type_: str
:param type_: name of parameter type. One of 'STRING', 'INT64',
Expand All @@ -381,11 +381,11 @@ def __init__(self, name, type_, value):

@classmethod
def positional(cls, type_, value):
"""Factory for positional paramters.
"""Factory for positional paramater.

:type type_: str
:param type_:
name of paramter type. One of 'STRING', 'INT64',
name of parameter type. One of 'STRING', 'INT64',
'FLOAT64', 'BOOL', 'TIMESTAMP', 'DATETIME', or 'DATE'.

:type value: str, int, float, bool, :class:`datetime.datetime`, or
Expand All @@ -399,7 +399,7 @@ def positional(cls, type_, value):

@classmethod
def from_api_repr(cls, resource):
"""Factory: construct paramter from JSON resource.
"""Factory: construct parameter from JSON resource.

:type resource: dict
:param resource: JSON mapping of parameter
Expand All @@ -420,7 +420,7 @@ def to_api_repr(self):
:returns: JSON mapping
"""
value = self.value
converter = _SCALAR_VALUE_TO_JSON.get(self.type_)
converter = _SCALAR_VALUE_TO_JSON.get(.type_)

This comment was marked as spam.

if converter is not None:
value = converter(value)
resource = {
Expand All @@ -441,7 +441,7 @@ class ArrayQueryParameter(AbstractQueryParameter):

:type name: str or None
:param name: Parameter name, used via ``@foo`` syntax. If None, the
paramter can only be addressed via position (``?``).
parameter can only be addressed via position (``?``).

:type array_type: str
:param array_type:
Expand All @@ -458,7 +458,7 @@ def __init__(self, name, array_type, values):

@classmethod
def positional(cls, array_type, values):
"""Factory for positional paramters.
"""Factory for positional parameters.

:type array_type: str
:param array_type:
Expand All @@ -475,7 +475,7 @@ def positional(cls, array_type, values):

@classmethod
def from_api_repr(cls, resource):
"""Factory: construct paramter from JSON resource.
"""Factory: construct parameter from JSON resource.

:type resource: dict
:param resource: JSON mapping of parameter
Expand Down Expand Up @@ -529,7 +529,7 @@ class StructQueryParameter(AbstractQueryParameter):

:type name: str or None
:param name: Parameter name, used via ``@foo`` syntax. If None, the
paramter can only be addressed via position (``?``).
parameter can only be addressed via position (``?``).

:type sub_params: tuple of :class:`ScalarQueryParameter`
:param sub_params: the sub-parameters for the struct
Expand All @@ -551,7 +551,7 @@ def __init__(self, name, *sub_params):

@classmethod
def positional(cls, *sub_params):
"""Factory for positional paramters.
"""Factory for positional parameters.

:type sub_params: tuple of :class:`ScalarQueryParameter`
:param sub_params: the sub-parameters for the struct
Expand All @@ -563,7 +563,7 @@ def positional(cls, *sub_params):

@classmethod
def from_api_repr(cls, resource):
"""Factory: construct paramter from JSON resource.
"""Factory: construct parameter from JSON resource.

:type resource: dict
:param resource: JSON mapping of parameter
Expand Down Expand Up @@ -635,7 +635,7 @@ def __get__(self, instance, owner):
:rtype: list of instances of classes derived from
:class:`AbstractQueryParameter`.
:returns: the descriptor, if accessed via the class, or the instance's
query paramters.
query parameters.
"""
if instance is None:
return self
Expand Down