Skip to content

Commit f4411d9

Browse files
committed
[DATALAD RUNCMD] run codespell throughout fixing few left typos automagically
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 182c711 commit f4411d9

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

examples/4_service_to_service/example_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Client for service to service example.
22
3-
Kicks off exmaple by sending message to service one, and then
3+
Kicks off example by sending message to service one, and then
44
waits for an event from service one to confirm the messages were passed between the two services properly.
55
66
"""

src/intersect_sdk/_internal/control_plane/brokers/mqtt_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def publish(self, topic: str, payload: bytes, persist: bool) -> None:
113113
topic: The topic on which to publish the message as a string.
114114
payload: The message to publish, as raw bytes.
115115
persist: Determine if the message should live until queue consumers or available (True), or
116-
if it should be removed immediatedly (False)
116+
if it should be removed immediately (False)
117117
"""
118118
# NOTE: RabbitMQ only works with QOS of 1 and 0, and seems to convert QOS2 to QOS1
119119
self._connection.publish(topic, payload, qos=2 if persist else 0)

src/intersect_sdk/_internal/event_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def definition_metadata_differences(
4242
) -> list[tuple[str, str, str]]:
4343
"""Return a list of differences between 'definition' and 'metadata'.
4444
45-
First tuple value = defintion key
45+
First tuple value = definition key
4646
Second tuple value = second value
4747
Third tuple value = already cached value
4848
"""

src/intersect_sdk/_internal/interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create_external_request(
3838
response_handler: INTERSECT_SERVICE_RESPONSE_CALLBACK_TYPE | None = None,
3939
timeout: float = 300.0,
4040
) -> UUID:
41-
"""Observed entity (capabilitiy) tells observer (i.e. service) to send an external request.
41+
"""Observed entity (capability) tells observer (i.e. service) to send an external request.
4242
4343
Params:
4444
- request: the request we want to send out, encapsulated as an IntersectDirectMessageParams object

src/intersect_sdk/_internal/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ def get_schema_and_functions_from_capability_implementations(
557557
if cap_status_fn_name and cap_status_schema and cap_status_type_adapter:
558558
if status_function_name is not None:
559559
# TODO may want to change this later
560-
die('Only one capabilitiy may have an @intersect_status function')
560+
die('Only one capability may have an @intersect_status function')
561561
status_function_cap = capability_type
562562
status_function_name = cap_status_fn_name
563563
status_function_schema = cap_status_schema

src/intersect_sdk/config/shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
class HierarchyConfig(BaseModel):
31-
"""Configuration for registring this service in a system-of-system architecture."""
31+
"""Configuration for registering this service in a system-of-system architecture."""
3232

3333
service: Annotated[str, Field(pattern=HIERARCHY_REGEX)]
3434
"""

tests/unit/test_annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def some_func(self) -> bool: ...
6262
assert len(errors) == 1
6363
assert {'type': 'missing', 'loc': ('event_type',)} in errors
6464

65-
# special case: we have a custom vaildator for event_type which fails on some common instantiations
65+
# special case: we have a custom validator for event_type which fails on some common instantiations
6666
with pytest.raises(ValidationError) as ex:
6767

6868
class BadEventArgs4(IntersectBaseCapabilityImplementation):

tests/unit/test_schema_invalids.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class PydanticUnparsableInner:
132132
three: str
133133

134134
@intersect_message()
135-
def cant_parse_annotation(self, unparseable: PydanticUnparsableInner) -> None: ...
135+
def cant_parse_annotation(self, unparsable: PydanticUnparsableInner) -> None: ...
136136

137137
with pytest.raises(SystemExit):
138138
get_schema_helper([PydanticUnparsable])
@@ -158,7 +158,7 @@ def mock_message(self) -> object: ...
158158

159159
def test_disallow_object_subtyping(caplog: pytest.LogCaptureFixture):
160160
# should fail because return type has a subtyping object (dynamic typing)
161-
# note that 'object' is evalutated exactly like it is as a root type
161+
# note that 'object' is evaluated exactly like it is as a root type
162162
class MockObjectSubtype(IntersectBaseCapabilityImplementation):
163163
intersect_sdk_capability_name = 'unused'
164164

@@ -456,7 +456,7 @@ def mock_message(self, param: Inner) -> None: ...
456456

457457

458458
def test_disallow_ambiguous_typealiastype(caplog: pytest.LogCaptureFixture):
459-
# should fail because the TypeVar is ambigous and would resolve to "Any"
459+
# should fail because the TypeVar is ambiguous and would resolve to "Any"
460460
class AmbiguousTypeAliasType(IntersectBaseCapabilityImplementation):
461461
intersect_sdk_capability_name = 'unused'
462462
T = TypeVar('T')
@@ -975,4 +975,4 @@ def status_function_2(self) -> str: ...
975975

976976
with pytest.raises(SystemExit):
977977
get_schema_helper([CapabilityName1, CapabilityName2])
978-
assert 'Only one capabilitiy may have an @intersect_status function' in caplog.text
978+
assert 'Only one capability may have an @intersect_status function' in caplog.text

0 commit comments

Comments
 (0)