@@ -309,7 +309,8 @@ def _get_single(self, db_object_type, uid):
309309
310310 def get_project (self , project_id ):
311311 """ Gets a single Project with the given ID.
312- >>> project = client.get_project("<project_id>")
312+
313+ >>> project = client.get_project("<project_id>")
313314
314315 Args:
315316 project_id (str): Unique ID of the Project.
@@ -323,7 +324,8 @@ def get_project(self, project_id):
323324
324325 def get_dataset (self , dataset_id ):
325326 """ Gets a single Dataset with the given ID.
326- >>> dataset = client.get_dataset("<dataset_id>")
327+
328+ >>> dataset = client.get_dataset("<dataset_id>")
327329
328330 Args:
329331 dataset_id (str): Unique ID of the Dataset.
@@ -336,16 +338,17 @@ def get_dataset(self, dataset_id):
336338 return self ._get_single (Dataset , dataset_id )
337339
338340 def get_user (self ):
339- """ Gets the current User database object.
340- >>> user = client.get_user()
341-
341+ """ Gets the current User database object.
342+ >>> user = client.get_user()
343+
342344 """
343345 return self ._get_single (User , None )
344346
345347 def get_organization (self ):
346- """ Gets the Organization DB object of the current user.
347- >>> organization = client.get_organization()
348-
348+ """ Gets the Organization DB object of the current user.
349+
350+ >>> organization = client.get_organization()
351+
349352 """
350353 return self ._get_single (Organization , None )
351354
@@ -369,7 +372,8 @@ def _get_all(self, db_object_type, where):
369372
370373 def get_projects (self , where = None ):
371374 """ Fetches all the projects the user has access to.
372- >>> projects = client.get_projects(where=(Project.name == "<project_name>") & (Project.description == "<project_description>"))
375+
376+ >>> projects = client.get_projects(where=(Project.name == "<project_name>") & (Project.description == "<project_description>"))
373377
374378 Args:
375379 where (Comparison, LogicalOperation or None): The `where` clause
@@ -381,7 +385,8 @@ def get_projects(self, where=None):
381385
382386 def get_datasets (self , where = None ):
383387 """ Fetches one or more datasets.
384- >>> datasets = client.get_datasets(where=(Dataset.name == "<dataset_name>") & (Dataset.description == "<dataset_description"))
388+
389+ >>> datasets = client.get_datasets(where=(Dataset.name == "<dataset_name>") & (Dataset.description == "<dataset_description"))
385390
386391 Args:
387392 where (Comparison, LogicalOperation or None): The `where` clause
@@ -393,7 +398,8 @@ def get_datasets(self, where=None):
393398
394399 def get_labeling_frontends (self , where = None ):
395400 """ Fetches all the labeling frontends.
396- >>> frontend = client.get_labeling_frontends(where=LabelingFrontend.name == "Editor")
401+
402+ >>> frontend = client.get_labeling_frontends(where=LabelingFrontend.name == "Editor")
397403
398404 Args:
399405 where (Comparison, LogicalOperation or None): The `where` clause
@@ -433,8 +439,9 @@ def _create(self, db_object_type, data):
433439 def create_dataset (self , ** kwargs ):
434440 """ Creates a Dataset object on the server. Attribute values are
435441 passed as keyword arguments:
436- >>> project = client.get_project("<project_uid>")
437- >>> dataset = client.create_dataset(name="<dataset_name>", projects=project)
442+
443+ >>> project = client.get_project("<project_uid>")
444+ >>> dataset = client.create_dataset(name="<dataset_name>", projects=project)
438445
439446 Kwargs:
440447 Keyword arguments with new Dataset attribute values.
@@ -451,7 +458,8 @@ def create_dataset(self, **kwargs):
451458 def create_project (self , ** kwargs ):
452459 """ Creates a Project object on the server. Attribute values are
453460 passed as keyword arguments:
454- >>> project = client.create_project(name="<project_name>", description="<project_description>")
461+
462+ >>> project = client.create_project(name="<project_name>", description="<project_description>")
455463
456464 Kwargs:
457465 Keyword arguments with new Project attribute values.
0 commit comments