Skip to content

Commit 610f3b6

Browse files
committed
Update some docs
1 parent f26e29d commit 610f3b6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/module/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ An example configuration for a Gizmo component and a Summation service could loo
6363
}
6464
```
6565

66-
After the robot has started and connected to the module, you can use the provided `client.py` to connect to your robot and make calls to your custom, modular resources.Ø
66+
After the robot has started and connected to the module, you can use the provided `client.py` to connect to your robot and make calls to your custom, modular resources.

examples/module/src/gizmo/my_gizmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class MyGizmo(Gizmo, Reconfigurable):
1515
"""This is the specific implementation of a ``Gizmo`` (defined in api.py).
1616
1717
It inherits from Gizmo, as well conforms to the ``Reconfigurable`` protocol, which signifies that this component can be reconfigured.
18-
It also specifies a function ``MyGizmo.new``, which conforms to the ``resource.ComponentCreator`` type, which is required
18+
It also specifies a function ``MyGizmo.new``, which conforms to the ``resource.types.ResourceCreator`` type, which is required
1919
for all models.
2020
"""
2121

examples/module/src/summation/my_summation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class MySummationService(SummationService, Reconfigurable):
1515
"""This is the specific implementation of a ``SummationService`` (defined in api.py)
1616
1717
It inherits from SummationService, as well as conforms to the ``Reconfigurable`` protocol, which signifies that this component can be
18-
reconfigured. It also specifies a function ``MySummationService.new``, which conforms to the ``resource.ServiceCreator`` type, which is
19-
required for all models.
18+
reconfigured. It also specifies a function ``MySummationService.new``, which conforms to the ``resource.types.ResourceCreator`` type,
19+
which is required for all models.
2020
"""
2121

2222
MODEL: ClassVar[Model] = Model.from_string("acme:demo:mysum")

src/viam/resource/registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def lookup_resource_creator(cls, subtype: "Subtype", model: "Model") -> "Resourc
136136
"""Lookup and retrieve a registered resource creator by its subtype and model
137137
138138
Args:
139-
subtype (Subtype): The Subtype of the service
140-
model (Model): The Model of the service
139+
subtype (Subtype): The Subtype of the resource
140+
model (Model): The Model of the resource
141141
142142
Raises:
143143
ResourceNotFoundError: Raised if the Subtype Model pairing is not registered

0 commit comments

Comments
 (0)