Skip to content

Commit 9bb9bb1

Browse files
authored
Fix thousands of spelling typos (#10272)
1 parent 4e3ae66 commit 9bb9bb1

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.generator/templates/api_client.mustache

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -600,12 +600,12 @@ class ApiClient(object):
600600
else:
601601
return content_types[0]
602602

603-
def update_params_for_auth(self, headers, querys, auth_settings,
603+
def update_params_for_auth(self, headers, queries, auth_settings,
604604
resource_path, method, body):
605605
"""Updates header and query params based on authentication setting.
606606

607607
:param headers: Header parameters dict to be updated.
608-
:param querys: Query parameters tuple list to be updated.
608+
:param queries: Query parameters tuple list to be updated.
609609
:param auth_settings: Authentication setting identifiers list.
610610
:param resource_path: A string representation of the HTTP request resource path.
611611
:param method: A string representation of the HTTP request method.
@@ -629,11 +629,11 @@ class ApiClient(object):
629629
# that are calculated dynamically.
630630
signing_info = self.configuration.signing_info
631631
auth_headers = signing_info.get_http_signature_headers(
632-
resource_path, method, headers, body, querys)
632+
resource_path, method, headers, body, queries)
633633
headers.update(auth_headers)
634634
{{/hasHttpSignatureMethods}}
635635
elif auth_setting['in'] == 'query':
636-
querys.append((auth_setting['key'], auth_setting['value']))
636+
queries.append((auth_setting['key'], auth_setting['value']))
637637
else:
638638
raise ApiValueError(
639639
'Authentication token must be in `query` or `header`'

.generator/templates/configuration.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ conf = {{{packageName}}}.Configuration(
133133
'Authorization' header, which is used to carry the signature.
134134

135135
One may be tempted to sign all headers by default, but in practice it rarely works.
136-
This is beccause explicit proxies, transparent proxies, TLS termination endpoints or
136+
This is because explicit proxies, transparent proxies, TLS termination endpoints or
137137
load balancers may add/modify/remove headers. Include the HTTP headers that you know
138138
are not going to be modified in transit.
139139

@@ -318,7 +318,7 @@ conf = {{{packageName}}}.Configuration(
318318
self._disabled_client_side_validations = s
319319
{{#hasHttpSignatureMethods}}
320320
if name == "signing_info" and value is not None:
321-
# Ensure the host paramater from signing info is the same as
321+
# Ensure the host parameter from signing info is the same as
322322
# Configuration.host.
323323
value.host = self.host
324324
{{/hasHttpSignatureMethods}}

.generator/templates/git_push.sh.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
33
#
4-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
4+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
55

66
git_user_id=$1
77
git_repo_id=$2

.generator/templates/model_templates/methods_setattr_getattr_composed.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
return value
8888

8989
def __contains__(self, name):
90-
"""used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`"""
90+
"""used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
9191

9292
if name in self.required_properties:
9393
return name in self.__dict__

.generator/templates/model_templates/methods_setattr_getattr_normal.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
)
2626

2727
def __contains__(self, name):
28-
"""used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`"""
28+
"""used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
2929
if name in self.required_properties:
3030
return name in self.__dict__
3131

.generator/templates/model_templates/model_composed.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class {{classname}}(ModelComposed):
4646
# we need this here to make our import statements work
4747
# we must store _composed_schemas in here so the code is only run
4848
# when we invoke this method. If we kept this at the class
49-
# level we would get an error beause the class level
49+
# level we would get an error because the class level
5050
# code would be run when this module is imported, and these composed
5151
# classes don't exist yet because their module has not finished
5252
# loading

.generator/templates/signing.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class HttpSigningConfiguration(object):
333333
:return: A tuple of (digest, prefix).
334334
The digest is a hashing object that contains the cryptographic digest of
335335
the HTTP request.
336-
The prefix is a string that identifies the cryptographc hash. It is used
336+
The prefix is a string that identifies the cryptographic hash. It is used
337337
to generate the 'Digest' header as specified in RFC 3230.
338338
"""
339339
if self.hash_algorithm == HASH_SHA512:

0 commit comments

Comments
 (0)