Skip to content

Commit 47ee8e3

Browse files
rc-0.5.1 (#414)
1 parent a37a992 commit 47ee8e3

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
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.5.0"
3+
version = "0.5.1"
44
description = "Viam Robotics Python SDK"
55
authors = [ "Naveed <naveed@viam.com>" ]
66
license = "Apache-2.0"

src/viam/components/camera/camera.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import abc
2-
from typing import Final, List, NamedTuple, Optional, Tuple, Union, Any, Dict
2+
from typing import Any, Dict, Final, List, NamedTuple, Optional, Tuple, Union
33

44
from PIL.Image import Image
55

@@ -36,12 +36,7 @@ class Properties(NamedTuple):
3636

3737
@abc.abstractmethod
3838
async def get_image(
39-
self,
40-
mime_type: str = "",
41-
*,
42-
extra: Optional[Dict[str, Any]] = None,
43-
timeout: Optional[float] = None,
44-
**kwargs
39+
self, mime_type: str = "", *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs
4540
) -> Union[Image, RawImage]:
4641
"""Get the next image from the camera as an Image or RawImage.
4742
Be sure to close the image when finished.
@@ -73,12 +68,9 @@ async def get_images(self, *, timeout: Optional[float] = None, **kwargs) -> Tupl
7368
...
7469

7570
@abc.abstractmethod
76-
async def get_point_cloud(self,
77-
*,
78-
extra: Optional[Dict[str, Any]] = None,
79-
timeout: Optional[float] = None,
80-
**kwargs
81-
) -> Tuple[bytes, str]:
71+
async def get_point_cloud(
72+
self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs
73+
) -> Tuple[bytes, str]:
8274
"""
8375
Get the next point cloud from the camera. This will be
8476
returned as bytes with a mimetype describing

src/viam/components/camera/client.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ def __init__(self, name: str, channel: Channel):
4343
self.client = CameraServiceStub(channel)
4444
super().__init__(name)
4545

46-
async def get_image(self,
47-
mime_type: str = "",
48-
*,
49-
extra: Optional[Dict[str, Any]] = None,
50-
timeout: Optional[float] = None
51-
) -> Union[Image.Image, RawImage]:
46+
async def get_image(
47+
self, mime_type: str = "", *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None
48+
) -> Union[Image.Image, RawImage]:
5249
if extra is None:
5350
extra = {}
5451
request = GetImageRequest(name=self.name, mime_type=mime_type, extra=dict_to_struct(extra))

0 commit comments

Comments
 (0)