Skip to content

Commit

Permalink
Fix import issuse by importing directly from relevant modules
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Jun 17, 2024
1 parent c255912 commit b756fc2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/lending/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from protean import handle
from protean.fields import String

from lending import HoldPlaced
from lending.patron import HoldPlaced
from lending.domain import lending


Expand Down
3 changes: 2 additions & 1 deletion src/lending/checkout_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from protean.exceptions import ValidationError
from protean.fields import Identifier

from lending import Book, BookType, Checkout, HoldStatus, Patron, PatronType
from lending.patron import Checkout, HoldStatus, Patron, PatronType
from lending.book import Book, BookType
from lending.domain import lending


Expand Down
3 changes: 2 additions & 1 deletion src/lending/daily_sheet_service.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from datetime import date

from lending import Book, HoldStatus, Patron
from lending.book import Book
from lending.domain import lending
from lending.patron import HoldStatus, Patron


@lending.domain_service(part_of=[Patron, Book])
Expand Down
13 changes: 2 additions & 11 deletions src/lending/holding_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@
from protean.exceptions import ValidationError
from protean.fields import Identifier

from lending import (
Book,
BookStatus,
BookType,
Hold,
HoldPlaced,
HoldStatus,
HoldType,
Patron,
PatronType,
)
from lending.book import Book, BookStatus, BookType
from lending.patron import Hold, HoldPlaced, HoldStatus, HoldType, Patron, PatronType
from lending.domain import lending


Expand Down

0 comments on commit b756fc2

Please sign in to comment.