Skip to content

Commit a945025

Browse files
Bumping version to v0.2.11 [skip ci]
1 parent 59c9e01 commit a945025

File tree

10 files changed

+9
-14
lines changed

10 files changed

+9
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "viam-sdk"
3-
version = "0.2.10"
3+
version = "0.2.11"
44
description = "Viam Robotics Python SDK"
55
authors = [ "Naveed <[email protected]>" ]
66
license = "Apache-2.0"

src/viam/components/arm/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818

1919
async def create_status(component: Arm) -> Status:
20-
(end_position, joint_positions, is_moving,) = await asyncio.gather(
20+
(
21+
end_position,
22+
joint_positions,
23+
is_moving,
24+
) = await asyncio.gather(
2125
component.get_end_position(),
2226
component.get_joint_positions(),
2327
component.is_moving(),

src/viam/components/audio_input/audio_input.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616

1717
class AudioInput(ComponentBase, MediaSource[Audio]):
18-
1918
SUBTYPE: Final = Subtype(RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, "audio_input")
2019

2120
@dataclass

src/viam/logging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010

1111
class ColorFormatter(logging.Formatter):
12-
1312
MAPPING = {
1413
"DEBUG": 37, # white
1514
"INFO": 36, # cyan

src/viam/media/media.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def stream(self) -> MediaStream[MediaType]:
3535

3636

3737
class MediaStreamWithIterator(MediaStream[MediaType]):
38-
3938
_stream: AsyncIterator[MediaType]
4039

4140
def __init__(self, stream: AsyncIterator[MediaType]):

src/viam/media/viam_rgba_plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def _save_rgba(img, fp, filename):
4444

4545

4646
class RGBAImage(ImageFile):
47-
4847
format: str = RGBA_FORMAT_LABEL
4948
format_description = "Viam's Raw RGBA Format"
5049

src/viam/module/module.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939

4040
class Module:
41-
4241
_address: str
4342
_parent_address: Optional[str] = None
4443
_ready: bool

src/viam/module/service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020

2121
class ModuleService(ModuleServiceBase):
22-
2322
_module: "Module"
2423

2524
def __init__(self, module: "Module") -> None:

src/viam/rpc/dial.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class Credentials:
3939

4040

4141
class DialOptions:
42-
4342
disable_webrtc: bool
4443
"""Bypass Web RTC and connect directly to the robot.
4544
"""
@@ -131,7 +130,6 @@ def request(
131130

132131
@dataclass
133132
class ViamChannel:
134-
135133
channel: Channel
136134
release: Callable[[], None]
137135
_closed: bool = False
@@ -153,7 +151,6 @@ async def __aexit__(self, exc_type, exc_value, traceback):
153151

154152

155153
class _Runtime:
156-
157154
_lib: ctypes.CDLL
158155
_ptr: ctypes.c_void_p
159156

src/viam/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def primitive_to_value(v: ValueTypes) -> Value:
5959
return Value(string_value=v)
6060
if isinstance(v, Dict):
6161
sv: Dict[str, Value] = {}
62-
for (key, value) in v.items():
62+
for key, value in v.items():
6363
if not isinstance(key, str):
6464
raise TypeError(f"Invalid UTF-8 in string: {key}")
6565
sv[key] = primitive_to_value(value)
@@ -150,7 +150,7 @@ def struct_to_dict(struct: Struct) -> Dict[str, ValueTypes]:
150150

151151
def sensor_readings_native_to_value(readings: Mapping[str, Any]) -> Mapping[str, Any]:
152152
prim_readings = dict(readings)
153-
for (key, reading) in readings.items():
153+
for key, reading in readings.items():
154154
if isinstance(reading, Vector3):
155155
prim_readings[key] = {"x": reading.x, "y": reading.y, "z": reading.z, "_type": "vector3"}
156156
elif isinstance(reading, GeoPoint):
@@ -168,7 +168,7 @@ def sensor_readings_native_to_value(readings: Mapping[str, Any]) -> Mapping[str,
168168

169169
def sensor_readings_value_to_native(readings: Mapping[str, Value]) -> Mapping[str, Any]:
170170
prim_readings = {key: value_to_primitive(value) for (key, value) in readings.items()}
171-
for (key, reading) in prim_readings.items():
171+
for key, reading in prim_readings.items():
172172
if isinstance(reading, Mapping):
173173
kind = reading.get("_type", "")
174174
if kind == "angular_velocity":

0 commit comments

Comments
 (0)