Skip to content

Commit 6112e35

Browse files
committed
update return comment
1 parent fc11aa6 commit 6112e35

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/viam/app/data_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ async def tabular_data_by_mql(self, organization_id: str, mql_binary: List[bytes
300300
response: TabularDataByMQLResponse = await self._data_client.TabularDataByMQL(request, metadata=self._metadata)
301301
return [bson.decode(bson_bytes) for bson_bytes in response.raw_data]
302302

303-
async def get_latest_tabular_data(self, part_id: str, resource_name: str, resource_subtype: str, method_name: str) -> Optional[Tuple[datetime,datetime, Dict[str, ValueTypes]]]:
303+
async def get_latest_tabular_data(self, part_id: str, resource_name: str, resource_subtype: str, method_name: str) -> Optional[Tuple[datetime, datetime, Dict[str, ValueTypes]]]:
304304
"""Gets the most recent tabular data captured from the specified data source, as long as it was synced within the last year.
305305
306306
::
@@ -321,9 +321,9 @@ async def get_latest_tabular_data(self, part_id: str, resource_name: str, resour
321321
322322
Returns:
323323
Optional[Tuple[Dict[str, ValueTypes], datetime, datetime]: A tuple which is None data hasn't been synced yet for the data source, otherwise the tuple contains the following:
324-
datetime: The time captured,
325-
datetime: The time synced,
326324
Dict[str, ValueTypes]: The latest tabular data captured from the specified data source.
325+
datetime: The time synced,
326+
datetime: The time captured.
327327
For more information, see `Data Client API <https://docs.viam.com/appendix/apis/data-client/>`_.
328328
"""
329329

tests/mocks/services.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,6 @@ async def GetLatestTabularData(self, stream: Stream[GetLatestTabularDataRequest,
10141014
data=dict_to_struct(self.tabular_response[0].data)
10151015
await stream.send_message(GetLatestTabularDataResponse(payload=data, time_captured=timestamp, time_synced=timestamp))
10161016

1017-
1018-
10191017
class MockDataset(DatasetServiceBase):
10201018
def __init__(self, create_response: str, datasets_response: Sequence[Dataset]):
10211019
self.create_response = create_response

0 commit comments

Comments
 (0)