Skip to content

Commit 8b1bd18

Browse files
rename resource class var
1 parent 27cdfd3 commit 8b1bd18

File tree

22 files changed

+22
-22
lines changed

22 files changed

+22
-22
lines changed

src/viam/components/arm/arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Arm(ComponentBase):
2626
For more information, see `Arm component <https://docs.viam.com/dev/reference/apis/components/arm/>`_.
2727
"""
2828

29-
SUBTYPE: Final = API(RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "arm") # pyright: ignore [reportIncompatibleVariableOverride]
29+
API: Final = API(RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "arm") # pyright: ignore [reportIncompatibleVariableOverride]
3030

3131
@abc.abstractmethod
3232
async def get_end_position(

src/viam/components/audio_input/audio_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AudioInput(ComponentBase, StreamSource[Audio]):
2222
overridden, it must call the ``super().__init__()`` function.
2323
"""
2424

25-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
25+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
2626
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "audio_input"
2727
)
2828

src/viam/components/base/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Base(ComponentBase):
2323
For more information, see `Base component <https://docs.viam.com/dev/reference/apis/components/base/>`_.
2424
"""
2525

26-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
26+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
2727
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "base"
2828
)
2929

src/viam/components/board/board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Board(ComponentBase):
3434
For more information, see `Board component <https://docs.viam.com/dev/reference/apis/components/board/>`_.
3535
"""
3636

37-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
37+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
3838
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "board"
3939
)
4040

src/viam/components/camera/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Camera(ComponentBase):
3030
For more information, see `Camera component <https://docs.viam.com/dev/reference/apis/components/camera/>`_.
3131
"""
3232

33-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
33+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
3434
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "camera"
3535
)
3636

src/viam/components/encoder/encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Properties:
2828
For more information, see `Encoder component <https://docs.viam.com/dev/reference/apis/components/encoder/>`_.
2929
"""
3030

31-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
31+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
3232
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "encoder"
3333
)
3434

src/viam/components/gantry/gantry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Gantry(ComponentBase):
2121
For more information, see `Gantry component <https://docs.viam.com/dev/reference/apis/components/gantry/>`_.
2222
"""
2323

24-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
24+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
2525
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "gantry"
2626
)
2727

src/viam/components/generic/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ def complex_command(self, arg1, arg2, arg3):
7171
For more information, see `Gantry component <https://docs.viam.com/dev/reference/apis/components/generic/>`_.
7272
"""
7373

74-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
74+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
7575
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "generic"
7676
)

src/viam/components/gripper/gripper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Gripper(ComponentBase):
2020
For more information, see `Gripper component <https://docs.viam.com/dev/reference/apis/components/gripper/>`_.
2121
"""
2222

23-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
23+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
2424
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "gripper"
2525
)
2626

src/viam/components/input/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Controller(ComponentBase):
143143
For more information, see `Input Controller component <https://docs.viam.com/dev/reference/apis/components/input-controller/>`_.
144144
"""
145145

146-
SUBTYPE: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
146+
API: Final = API( # pyright: ignore [reportIncompatibleVariableOverride]
147147
RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "input_controller"
148148
)
149149

0 commit comments

Comments
 (0)