Skip to content

Commit 38046f5

Browse files
authored
fix: typo in core/azure-core (#26124)
1 parent 188d114 commit 38046f5

32 files changed

Lines changed: 96 additions & 47 deletions

.vscode/cspell.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"sdk/core/azure/**",
5656
"sdk/core/azure-common/**",
5757
"sdk/core/azure-core-tracing-opentelemetry/**",
58-
"sdk/core/azure-core/**",
5958
"sdk/core/azure-servicemanagement-legacy/**",
6059
"sdk/deviceupdate/azure-iot-deviceupdate/**",
6160
"sdk/digitaltwins/azure-digitaltwins-core/**",
@@ -120,6 +119,8 @@
120119
"amqps",
121120
"apim",
122121
"Asal",
122+
"astimezone",
123+
"AsyncIterable",
123124
"asyncio",
124125
"avroencoder",
125126
"azcmagent",
@@ -133,6 +134,7 @@
133134
"cdll",
134135
"certprg",
135136
"certver",
137+
"cchardet",
136138
"clientid",
137139
"cname",
138140
"conda",
@@ -778,6 +780,47 @@
778780
"Shenzen",
779781
"myusername"
780782
]
783+
},
784+
{
785+
"filename": "sdk/core/azure-core/**",
786+
"words": [
787+
"odatav",
788+
"unpicklable",
789+
"reinvesitgate",
790+
"sansio",
791+
"ctxt",
792+
"azcore",
793+
"cafile",
794+
"wbits",
795+
"ctype",
796+
"hdrs",
797+
"rdap",
798+
"chardet",
799+
"redef",
800+
"cvar",
801+
"ryohji",
802+
"jiasli",
803+
"vbarbaresi",
804+
"undoc",
805+
"myuseragent",
806+
"azconfig",
807+
"killpg",
808+
"getpgid",
809+
"Chocolat",
810+
"myusergant",
811+
"nocover",
812+
"Patiño",
813+
"oooooold",
814+
"mytools",
815+
"myattr",
816+
"myvalue",
817+
"Oopsy",
818+
"datav",
819+
"mybytes",
820+
"myid",
821+
"jsonify",
822+
"ints"
823+
]
781824
}
782825
],
783826
"allowCompoundWords": true

sdk/core/azure-core/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ set the http logging policy of the config #12218
470470
- Tracing: `azure.core.tracing.context.tracing_context.with_current_context` renamed to `azure.core.tracing.common.with_current_context` #7252
471471
- Tracing: `link` renamed `link_from_headers` and `link` takes now a string
472472
- Tracing: opencensus implementation has been moved to the package `azure-core-tracing-opencensus`
473-
- Some modules and classes that were importables from several differente places have been removed:
473+
- Some modules and classes that were importables from several different places have been removed:
474474

475475
- `azure.core.HttpResponseError` is now only `azure.core.exceptions.HttpResponseError`
476476
- `azure.core.Configuration` is now only `azure.core.configuration.Configuration`

sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ implementation should mention that this keyword argument will not be used when m
566566
potential consequences of this. For example, if a `TokenCredential` implementation doesn't use `tenant_id`, it should
567567
document that fetched tokens may not authorize requests made to the specified tenant.
568568

569-
There is also an async protocol -- the `AsyncTokenCredential` protocol -- that specifies a class with an aysnc
569+
There is also an async protocol -- the `AsyncTokenCredential` protocol -- that specifies a class with an async
570570
`get_token` method with the same arguments. An `AsyncTokenCredential` implementation additionally needs to be a context
571571
manager, with `__aenter__`, `__aexit__`, and `close` methods.
572572

sdk/core/azure-core/azure/core/async_paging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class AsyncList(AsyncIterator[ReturnType]):
5252
def __init__(self, iterable: Iterable[ReturnType]) -> None:
5353
"""Change an iterable into a fake async iterator.
5454
55-
Coul be useful to fill the async iterator contract when you get a list.
55+
Could be useful to fill the async iterator contract when you get a list.
5656
5757
:param iterable: A sync iterable of T
5858
"""

sdk/core/azure-core/azure/core/pipeline/policies/_retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ class RetryPolicy(RetryPolicyBase, HTTPPolicy):
358358
359359
:keyword float retry_backoff_factor: A backoff factor to apply between attempts after the second try
360360
(most errors are resolved immediately by a second try without a delay).
361-
In fixed mode, retry policy will alwasy sleep for {backoff factor}.
361+
In fixed mode, retry policy will always sleep for {backoff factor}.
362362
In 'exponential' mode, retry policy will sleep for: `{backoff factor} * (2 ** ({number of total retries} - 1))`
363363
seconds. If the backoff_factor is 0.1, then the retry will sleep
364364
for [0.0s, 0.2s, 0.4s, ...] between retries. The default value is 0.8.

sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def send(self, request, **config):
217217
verify=config.pop('connection_verify', self.connection_config.verify)
218218
)
219219
# If we know for sure there is not body, disable "auto content type"
220-
# Otherwise, aiohttp will send "application/octect-stream" even for empty POST request
220+
# Otherwise, aiohttp will send "application/octet-stream" even for empty POST request
221221
# and that break services like storage signature
222222
if not request.data and not request.files:
223223
config['skip_auto_headers'] = ['Content-Type']

sdk/core/azure-core/azure/core/pipeline/transport/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def _get_raw_parts(self, http_response_type=None):
417417
"""Assuming this body is multipart, return the iterator or parts.
418418
419419
If parts are application/http use http_response_type or HttpClientTransportResponse
420-
as enveloppe.
420+
as envelope.
421421
"""
422422
return _get_raw_parts_helper(self, http_response_type or HttpClientTransportResponse)
423423

sdk/core/azure-core/azure/core/rest/_http_response_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _get_raw_parts(self, http_response_type=None):
121121
Assuming this body is multipart, return the iterator or parts.
122122
123123
If parts are application/http use http_response_type or HttpClientTransportResponse
124-
as enveloppe.
124+
as envelope.
125125
"""
126126
return _get_raw_parts_helper(
127127
self, http_response_type or RestHttpClientTransportResponse

sdk/core/azure-core/azure/core/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class PrioritizedSetting(object):
198198
The optional ``default`` argument specified an implicit default value for
199199
the setting that is returned if no other methods provide a value.
200200
201-
A ``convert`` agument may be provided to convert values before they are
201+
A ``convert`` argument may be provided to convert values before they are
202202
returned. For instance to concert log levels in environment variables
203203
to ``logging`` module values.
204204
@@ -332,7 +332,7 @@ class Settings(object):
332332
* settings.defaults returns the base defaultsvalues , ignoring any environment or system
333333
or user settings
334334
335-
* settings.current returns the current computation of settings including prioritizatiom
335+
* settings.current returns the current computation of settings including prioritization
336336
of configuration sources, unless defaults_only is set to True (in which case the result
337337
is identical to settings.defaults)
338338
@@ -422,7 +422,7 @@ def _config(self, props): # pylint: disable=no-self-use
422422
)
423423

424424
tracing_enabled = PrioritizedSetting(
425-
"tracing_enbled", env_var="AZURE_TRACING_ENABLED", convert=convert_bool, default=False
425+
"tracing_enabled", env_var="AZURE_TRACING_ENABLED", convert=convert_bool, default=False
426426
)
427427

428428
tracing_implementation = PrioritizedSetting(

sdk/core/azure-core/azure/core/tracing/_abstract_span.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, span=None, name=None, **kwargs): # pylint: disable=super-ini
4949
# type: (Optional[Any], Optional[str], Any) -> None
5050
"""
5151
If a span is given wraps the span. Else a new span is created.
52-
The optional arguement name is given to the new span.
52+
The optional argument name is given to the new span.
5353
"""
5454

5555
def span(self, name="child_span", **kwargs):

0 commit comments

Comments
 (0)