-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeAlias Camera.Properties #502
Conversation
Warning your change may break code samples. If your change modifies any of the following functions please contact @viamrobotics/fleet-management. Thanks!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -64,8 +64,7 @@ async def get_point_cloud(self, *, extra: Optional[Dict[str, Any]] = None, timeo | |||
return (response.point_cloud, response.mime_type) | |||
|
|||
async def get_properties(self, *, timeout: Optional[float] = None) -> Camera.Properties: | |||
response: GetPropertiesResponse = await self.client.GetProperties(GetPropertiesRequest(name=self.name), timeout=timeout) | |||
return Camera.Properties(response.supports_pcd, response.intrinsic_parameters, response.distortion_parameters) | |||
return await self.client.GetProperties(GetPropertiesRequest(name=self.name), timeout=timeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Prompted by viamrobotics/api#408, we were redefining
Camera.Properties
when we could've simplyTypeAlias
ed it