Skip to content

Commit

Permalink
Merge branch 'master' of github.com:v7labs/darwin-py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathanjp91 committed Nov 28, 2023
2 parents 87153ec + 09b00d2 commit 8961b64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions darwin/future/meta/objects/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ def __init__(

def __repr__(self) -> str:
return str(self)

def __str__(self) -> str:
return f"{self.__class__.__name__}({self._element})"
8 changes: 7 additions & 1 deletion darwin/future/meta/objects/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from darwin.future.core.items.archive_items import archive_list_of_items
from darwin.future.core.items.delete_items import delete_list_of_items
from darwin.future.core.items.move_items_to_folder import move_list_of_items_to_folder
from darwin.future.core.items.set_item_priority import set_item_priority
from darwin.future.core.items.restore_items import restore_list_of_items
from darwin.future.core.items.set_item_priority import set_item_priority
from darwin.future.data_objects.item import ItemCore, ItemLayout, ItemSlot
from darwin.future.meta.objects.base import MetaBase

Expand Down Expand Up @@ -144,3 +144,9 @@ def tags(self) -> Optional[Union[List[str], Dict[str, str]]]:
@property
def layout(self) -> Optional[ItemLayout]:
return self._element.layout

def __str__(self) -> str:
return f"Item\n\
- Item Name: {self._element.name}\n\
- Item Processing Status: {self._element.processing_status}\n\
- Item ID: {self._element.id}"

0 comments on commit 8961b64

Please sign in to comment.