mirror of
https://github.com/kristoferssolo/LU-bookstore.git
synced 2025-10-21 18:00:34 +00:00
fead(Inventory): update add method
This commit is contained in:
parent
f0087b97ce
commit
73090ea440
@ -29,7 +29,7 @@ class Inventory:
|
||||
"""Close database connection."""
|
||||
self.conn.close()
|
||||
|
||||
def add(self, *books: list[Book]) -> None:
|
||||
def add(self, *books: Book) -> None:
|
||||
"""Add `Book` to the `Inventory`. `Book`s ISBN must be unique."""
|
||||
for book in books:
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user