python formatting

This commit is contained in:
Mouse Reeve
2021-04-08 15:11:16 -07:00
parent b1491c2ac6
commit ee6f37d7d2
3 changed files with 32 additions and 4 deletions

View File

@ -55,6 +55,7 @@ class OrderedCollectionPage(ActivityObject):
@dataclass(init=False)
class CollectionItem(ActivityObject):
""" an item in a collection """
actor: str
type: str = "CollectionItem"
@ -62,6 +63,7 @@ class CollectionItem(ActivityObject):
@dataclass(init=False)
class ListItem(CollectionItem):
""" a book on a list """
book: str
notes: str = None
approved: bool = True
@ -72,5 +74,6 @@ class ListItem(CollectionItem):
@dataclass(init=False)
class ShelfItem(CollectionItem):
""" a book on a list """
book: str
type: str = "ShelfItem"